From 678e2025fc450a389079fc50a73d7a5db6b32bd9 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Wed, 21 Aug 2019 13:43:52 +0200 Subject: [PATCH] Keeping enum initializers --- tools/dtsgen/declarator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => {