-
-
Notifications
You must be signed in to change notification settings - Fork 785
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: drizzle-valibot does not provide types for returned schemas #2521
Comments
I had the same bug, and did a little bit of investigation. It seems that this bug is caused by the changes introduced in the 0.31 release of Valibot, which restructured the code to make use of a new Reverting valibot version to ^0.30.0 fixes the error and thus the bug. This means that we need to adapt the drizzle-valibot typings to the new version of |
Any info/progress on this issue? |
it seems that the return type is being purposely set to 'any' as you can see by the code, is there a reason why so? |
Just an update for the devs: Valibot is already at |
This one was fixed in the latest |
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
The text was updated successfully, but these errors were encountered: