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
  • Loading branch information
kuesutodev committed Aug 15, 2024
1 parent 78d7df0 commit add249e
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 add249e

Please sign in to comment.