Skip to content

Commit

Permalink
fix(type-compiler): include enum annotations in .d.ts transformation (#…
Browse files Browse the repository at this point in the history
…607)

Co-authored-by: kuesutodev <[email protected]>
  • Loading branch information
kuesutodev and kuesutodev authored Sep 6, 2024
1 parent ee6f362 commit 08854f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/type-compiler/src/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) });
Expand Down

0 comments on commit 08854f3

Please sign in to comment.