diff --git a/tools/dtsgen/declarator.ts b/tools/dtsgen/declarator.ts index 13fe17be..99b210b9 100644 --- a/tools/dtsgen/declarator.ts +++ b/tools/dtsgen/declarator.ts @@ -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) => {