3.0.0-alpha.7
Pre-release
Pre-release
- Refactored parsing logic into individual subclass methods
- Eliminated ZodTypes to enable custom ZodType subclasses
- Removed ZodIntersection
- Added ZodEffects as a container for refinement and transform logic
- Added
ormethod toZodType - Added
formatmethod toZodError - Added
unwrapmethod toZodOptionalandZodNullable - Added new
defaultmethod and moved default functionality into ZodOptional - Implemented
z.setErrorMap - Exporting
zvariable fromindex.tsto enableimport { z } from 'zod';