We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The latest version of Node supports TS but only via type stripping and it can't generate enums.
Could you library optionally generate string unions instead? Rather than (eg)
export enum SlugEnum { Bcp = 'bcp', Experimental = 'experimental', Historic = 'historic', Informational = 'informational', Standard = 'standard', Unknown = 'unknown' }
A string union like,
export SlugEnum = 'bcp' | 'experimental' | 'historic' | 'informational' | 'standard' | 'unknown'
The text was updated successfully, but these errors were encountered:
inline enums #5
da3e3c7
Hi, @holloway. Thank you for issue.
Added in v1.1.0.
Here a docs: https://github.com/vladkens/apigen-ts?tab=readme-ov-file#string-union-as-enums
Sorry, something went wrong.
@vladkens excellent!
No branches or pull requests
The latest version of Node supports TS but only via type stripping and it can't generate enums.
Could you library optionally generate string unions instead? Rather than (eg)
A string union like,
The text was updated successfully, but these errors were encountered: