Keeping enum initializers
parent
0e054397e2
commit
678e2025fc
|
@ -397,7 +397,7 @@ generators[SyntaxKind.TypeAliasDeclaration] = (settings, stack, node: ts.TypeAli
|
|||
};
|
||||
|
||||
generators[SyntaxKind.EnumMember] = (settings, stack, node: ts.EnumMember) => {
|
||||
return ts.createEnumMember(node.name, undefined);
|
||||
return ts.createEnumMember(node.name, node.initializer);
|
||||
};
|
||||
|
||||
generators[SyntaxKind.EnumDeclaration] = (settings, stack, node: ts.EnumDeclaration) => {
|
||||
|
|
Loading…
Reference in New Issue