We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee6f362 commit 08854f3Copy full SHA for 08854f3
packages/type-compiler/src/compiler.ts
@@ -2762,7 +2762,7 @@ export class DeclarationTransformer extends ReflectionTransformer {
2762
const visitor = (node: Node): any => {
2763
node = visitEachChild(node, visitor, this.context);
2764
2765
- if ((isTypeAliasDeclaration(node) || isInterfaceDeclaration(node)) && hasModifier(node, SyntaxKind.ExportKeyword)) {
+ if ((isTypeAliasDeclaration(node) || isInterfaceDeclaration(node) || isEnumDeclaration(node)) && hasModifier(node, SyntaxKind.ExportKeyword)) {
2766
const reflection = this.isWithReflection(sourceFile, node);
2767
if (reflection) {
2768
this.addExports.push({ identifier: getIdentifierName(this.getDeclarationVariableName(node.name)) });
0 commit comments