@theshelf/validation-driver-zod
v0.4.0
Published
This package contains the driver implementation for Zod. This driver can be used by the [core package](../../core/README.md) for performing the actual operations.
Keywords
Readme
Validation Zod driver | The Shelf
This package contains the driver implementation for Zod. This driver can be used by the core package for performing the actual operations.
Installation
npm install @theshelf/validation @theshelf/validation-driver-zodHow to use
The basic set up looks like this.
import Validator from '@theshelf/validation';
import { ZodDriver } from '@theshelf/validation-driver-zod';
const driver = new ZodDriver();
const validator = new Validator(driver);
// Perform operations with the validator instance