I created an enum in Postgres using create type "Schema"."ClaimTypeEnum" as enum ('Institutional', 'Professional')
and referenced it in Kysely with sql.id('Schema', 'ClaimTypeEnum')
but when I run npx kysely-codegen --runtime-enums
, I get
export interface Table {
ClaimType: "Institutional" | "Professional";
}
instead of something like
export enum ClaimTypeEnum {
INSTITUTIONAL = 'Institutional',
PROFESSIONAL = 'Professional',
}
export interface Table {
ClaimType: ClaimTypeEnum
}
For context, I'm using Postgres 16.4
, and kysely-codegen 0.16.8
.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too