Trouble assigning enum as input for sqlite database.
I have an enum in typescript
and I am trying to use it for my sqlite DB
However as you can see I had to comment it because I am getting a weird type error.
I have tried directly using the enum name
enum: InsuranceStatus
I have tried declaring a string[] , const enumInsuranceStatus: string[] = Object.keys(InsuranceStatus);
, and using it enum: enumInsuranceStatus
and few other variations.
Please help.
I am using Bun:Sqlite as driver for drizzle. This is a newly scaffolded project so all packages are upgraded to latest. 1 Reply
Any help please?