From 08854f3d1aff429b70c384aeaf54538b1f49c079 Mon Sep 17 00:00:00 2001
From: kuesutodev <doyouevencode@outlook.com>
Date: Fri, 6 Sep 2024 18:47:49 +0100
Subject: [PATCH] fix(type-compiler): include enum annotations in .d.ts
 transformation (#607)

Co-authored-by: kuesutodev <plakoodle@outlook.com>
---
 packages/type-compiler/src/compiler.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)) });