Zod Types not inferring
Hey!
Love this library
I just encountered a strange error and I am unsure if its a Tanstack error, Zod or zod-drizzle error. I just wanted to mention this in case other run in to the same bug.
Here is my case:
UpdateCarSchemaNotCurrentlyWorking is identical to UpdateCarSchema but when using UpdateCarSchemaNotCurrentlyWorking type intellisense is not working.
2 Replies
rival-blackOPā¢6mo ago
The error occurs because I use JSON in schema in Drizzle
permits: json('permits').$type<string[]>().notNull().default([]),
harsh-harlequinā¢6mo ago
Don't use
z.infer
Use z.input
š