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
Property 'datetime' does not exist on type 'ZodString'. #1580
Comments
This caught me out the other day, the docs are reflecting the main branch here, but the latest package on NPM is 2 months old - the |
Ive just been using z.date(). Works fine with datetime strings for me... |
Since I need to check if the |
I see 2 important problems here:
|
I had to install version |
|
The |
Since i am new to zod, i've been reading the documentation for a while and found the z.string().datetime() method.
However, when I tried that method on my project, I got an error that's says
Property 'datetime' does not exist on type 'ZodString'
.do you guys have any workaround for this problem?
The text was updated successfully, but these errors were encountered: