From 5aa0375cd9b4e9526a3fbe75139aac30d5b264c1 Mon Sep 17 00:00:00 2001 From: Adha Bakhtiar Date: Fri, 6 Dec 2024 17:11:56 +0700 Subject: [PATCH] Update createLarvelEnumTypes.ts --- src/models/createLarvelEnumTypes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/createLarvelEnumTypes.ts b/src/models/createLarvelEnumTypes.ts index bf7856d..1805cfb 100644 --- a/src/models/createLarvelEnumTypes.ts +++ b/src/models/createLarvelEnumTypes.ts @@ -49,7 +49,7 @@ export const createEnumType = (enumFilePath: string) => { ).map((declaration) => declaration.constants.at(0)) as Constant[]; return ts.factory.createEnumDeclaration( - undefined, + [ts.factory.createModifier(ts.SyntaxKind.ExportKeyword)], ts.factory.createIdentifier(className), constants.map((constant) => ts.factory.createEnumMember(