Skip to content

Commit 08854f3

Browse files
kuesutodevkuesutodev
andauthored
fix(type-compiler): include enum annotations in .d.ts transformation (#607)
Co-authored-by: kuesutodev <[email protected]>
1 parent ee6f362 commit 08854f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/type-compiler/src/compiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2762,7 +2762,7 @@ export class DeclarationTransformer extends ReflectionTransformer {
27622762
const visitor = (node: Node): any => {
27632763
node = visitEachChild(node, visitor, this.context);
27642764

2765-
if ((isTypeAliasDeclaration(node) || isInterfaceDeclaration(node)) && hasModifier(node, SyntaxKind.ExportKeyword)) {
2765+
if ((isTypeAliasDeclaration(node) || isInterfaceDeclaration(node) || isEnumDeclaration(node)) && hasModifier(node, SyntaxKind.ExportKeyword)) {
27662766
const reflection = this.isWithReflection(sourceFile, node);
27672767
if (reflection) {
27682768
this.addExports.push({ identifier: getIdentifierName(this.getDeclarationVariableName(node.name)) });

0 commit comments

Comments
 (0)