-
-
Notifications
You must be signed in to change notification settings - Fork 273
Closed
Labels
feature 🚀New feature or requestNew feature or request
Description
Description
I'd like to be able to generate enums as const enum. In use, it's equivalent to regular TypeScript enums, but it won't generate any runtime code. Instead, it will inline its values into the JavaScript code.
I saw on the discussion board that there's at least one other person interested in this feature 😄
I'd suggest being able to configure it like so:
{
name: '@hey-api/typescript', // preserves default output
enums: 'typescript-const',
},What do you think? I'm willing to attempt to implement this myself and make a PR for it!
carson2222 and FDiskas
Metadata
Metadata
Assignees
Labels
feature 🚀New feature or requestNew feature or request