Zod
Zod checks whether values in JavaScript and TypeScript match the rules you set for them.
colinhacks · Code and testing
GitHub projectOpen source Open on GitHub
How to try it
Validate a pretend event signup and show which field fails when the guest count is entered as text.
What we tested
4.6.7. Validated a sample report and rejected text in a field that required a whole-number count.