Open renesass opened 7 months ago
drizzle-orm
0.29.2
drizzle-kit
0.20.13
Hey! I'm using drizzle together with typebox and I get the wrong types when using array. See the following example:
import { pgTable } from 'drizzle-orm/pg-core' import { createSelectSchema } from 'drizzle-typebox' const shop = pgTable('shop', { images: text('images').array() }) const shopSchema = createSelectSchema(shop) // Creates the following object: // TObject<{ images: TNullable<TString>; }>
Probably related to #1416?
// TObject<{ images: TNullable<TArray<TString>>; }>
No response
Marked this PR to be merged
Any updates on this? This still seems to be a problem as of drizzle-orm 0.32.2.
What version of
drizzle-orm
are you using?0.29.2
What version of
drizzle-kit
are you using?0.20.13
Describe the Bug
Hey! I'm using drizzle together with typebox and I get the wrong types when using array. See the following example:
Probably related to #1416?
Expected behavior
Environment & setup
No response