zod
https://github.com/colinhacks/zod
TypeScript
TypeScript-first schema validation with static type inference
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
TypeScript not yet supported2 Subscribers
Add a CodeTriage badge to zod
Help out
- Issues
- fix: add RFC 1035 length limits to domain regex
- feat: expose _zod property on .implement() return value
- fix: use isThenable instead of instanceof Promise for Zone.js compat
- fix(date): force origin 'date' in min/max error issues
- fix: prevent metadata from overriding schema-derived type in toJSONSchema
- fix: show 'Infinity'/'NaN' in error message when parsing non-finite numbers
- fix(httpUrl): allow underscores in hostname
- fix: constrain preprocess fn return type to schema input type
- fix: use separate .d.ts types for import vs .d.cts for require
- Fix exactOptional with coercion producing values for absent keys
- Docs
- TypeScript not yet supported