diff --git a/packages/type-compiler/src/compiler.ts b/packages/type-compiler/src/compiler.ts index 96a828bf1..21aa5c53a 100644 --- a/packages/type-compiler/src/compiler.ts +++ b/packages/type-compiler/src/compiler.ts @@ -2762,7 +2762,7 @@ export class DeclarationTransformer extends ReflectionTransformer { const visitor = (node: Node): any => { node = visitEachChild(node, visitor, this.context); - if ((isTypeAliasDeclaration(node) || isInterfaceDeclaration(node)) && hasModifier(node, SyntaxKind.ExportKeyword)) { + if ((isTypeAliasDeclaration(node) || isInterfaceDeclaration(node) || isEnumDeclaration(node)) && hasModifier(node, SyntaxKind.ExportKeyword)) { const reflection = this.isWithReflection(sourceFile, node); if (reflection) { this.addExports.push({ identifier: getIdentifierName(this.getDeclarationVariableName(node.name)) });