Skip to content

[FEATURE]: Generate TypeScript enum instead of array of strings when running drizzle-kit introspect #4418

Open
@DePasqualeOrg

Description

@DePasqualeOrg

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Now that pgEnum and mysqlEnum have more useful functionality in the latest version of Drizzle, it would be great if drizzle-kit would default to generating TypeScript enums instead of arrays of strings when running introspect, so that we can use this functionality without making manual changes to the schema each time introspect is run.

Alternatively, perhaps this behavior could be controlled by a config setting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions