what is Zod
Answered
Cuban Crocodile posted this in #help-forum
Cuban CrocodileOP
i saw zod in package.json
Answered by B33fb0n3
zod is a library to validate data. If you for example have a number like "houseNumber", you can check if it's higher than 0 and less than 1000.
And that's with one line:
And that's with one line:
z.number().min(0).max(1000)5 Replies
@Cuban Crocodile i saw zod in package.json
zod is a library to validate data. If you for example have a number like "houseNumber", you can check if it's higher than 0 and less than 1000.
And that's with one line:
And that's with one line:
z.number().min(0).max(1000)Answer
and that's just one example. Take a look at these: https://zod.dev/
Cuban CrocodileOP
thanks man got it
sorry dumb question i was reading the docs and was too overwhelmed by "Zod is a TypeScript-first schema declaration " didnt bother reading further
sorry dumb question i was reading the docs and was too overwhelmed by "Zod is a TypeScript-first schema declaration " didnt bother reading further
happy to help