@valivali/myzod
v1.0.0
Published
ValiVali Resolver for myzod.
Downloads
5
Maintainers
Readme
@valivali/myzod
ValiVali Resolver for myzod.
🚀 Installation
$ npm install @valivali/core @valivali/myzod myzod
👏 Getting Started
The following is a simple usage example.
import { valivali } from '@valivali/core';
import { myzodResolver } from '@valivali/myzod';
// It is also possible to import with the following aliases.
// import { resolver } from '@valivali/myzod';
import myzod from 'myzod';
const schema = myzod.object({
id: myzod.string(),
name: myzod.string(),
});
const value = {
id: 'id',
name: 'name',
};
const validatedValue = valivali(myzodResolver(schema), value);
🤝 Contributing
Contributions, issues and feature requests are welcome.
Feel free to check issues page if you want to contribute.
📝 License
Copyright © 2020 @Karibash.
This project is MIT
licensed.