Skip to content

Commit f18f8df

Browse files
feat: enable enums as types in code generation configuration (#14)
1 parent f019b90 commit f18f8df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils/server-codegen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export async function generateTypes(
5757
maybeValue: 'T | null | undefined',
5858
inputMaybeValue: 'T | undefined',
5959
declarationKind: 'interface',
60+
enumsAsTypes: true,
6061
}
6162

6263
const mergedConfig = defu(config, defaultConfig)

0 commit comments

Comments
 (0)