Types don't infer correctly for tables with`references` method?
I'm using Drizzle with Expo SQLite in an Expo managed app. On my schema all of the tables that contain simple column data, i.e. primitive types like
I'm using:
In my schema I have the table
Even if I try to specify the type of the column with the
Is there a way to get this to generate correctly? I'd be happy with a solution that requires passing types as args or generated by the drizzle api.
Thanks in advance for any help!
text or int, get typed correctly. Any time I create an association with the references method the generated type becomes { [x: string]: any }.I'm using:
- Expo SDK: 51
- Expo SQLite: 14.0.6
- drizzle-orm: 0.44.2
- drizzle-kit: 0.31.1
In my schema I have the table
movementTypes and a join table that connects it with another table called characters. Even if I try to specify the type of the column with the
$type<>() method, I'm still not getting the correct type returned for the table's model.Is there a way to get this to generate correctly? I'd be happy with a solution that requires passing types as args or generated by the drizzle api.
Thanks in advance for any help!