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
enum
5.26.2
It would be great to also codegen an enum like so:
enum ELocales { 'en-US' = 'en-US', 'fr' = 'fr' }
An example of use-case of it could be to use typesafe-i18n with TypeORM
const decoratorConfigLocalesEnumFragment = { default: baseLocale, enum: ELocales, type: 'enum' } as const; @Entity() class Foo { // * ... @Column({ nullable: false, ...decoratorConfigLocalesEnumFragment }) inferedLang!: ELocales; @Column({ nullable: true, ...decoratorConfigLocalesEnumFragment }) lang!: ELocales; // * ... }
Process a codegen with typesafe-i18n, then inspect the i18n-types.ts file. A desirable enum is missing.
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version
5.26.2
Describe the bug
It would be great to also codegen an enum like so:
An example of use-case of it could be to use typesafe-i18n with TypeORM
Reproduction
Process a codegen with typesafe-i18n, then inspect the i18n-types.ts file.
A desirable enum is missing.
Logs
No response
Config
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: