zod.parse - how to enable typescript type checking? #3465
Unanswered
lucashfreitas
asked this question in
Q&A
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
zod.parse
doesn't typecheck with Typescript. I am usingstrict
mode but didn't find a way to force zod to fail in compiling time for the situation bellowRelated question: (I know it can throw an error for unrecognised keys but I'd like it to fail in compiling time)
https://stackoverflow.com/questions/70415330/do-not-allow-extra-properties-with-zod-parse
Beta Was this translation helpful? Give feedback.
All reactions