Keeping enum initializers

canary
WolverinDEV 2019-08-21 13:43:52 +02:00
parent 0e054397e2
commit 678e2025fc
1 changed files with 1 additions and 1 deletions

View File

@ -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) => {