Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too 😅
21.44k
stars
484
forks
source link
[BUG]: drizzle-valibot does not provide types for returned schemas #2521
Open
valerii15298 opened 1 week ago
What version of
drizzle-orm
are you using?drizzle-orm 0.31.2
What version of
drizzle-kit
are you using?drizzle-kit 0.22.7
Describe the Bug
I wanted to use drizzle-valibot package to create ready to use validation schemas from drizzle schema. I use this code from the example:
Expected behavior
insertUserSchema
should be properly typed. But instead I get this:Note that
insertUserSchema
hasany
type...Environment & setup
Nodejs,
typescript 5.4.5
drizzle-valibot 0.2.0
drizzle-kit 0.22.7
drizzle-orm 0.31.2