验证解析器:Clipboard使用指南

Clipboard验证解析器是一个高效、灵活且可扩展的工具,简化了表单验证的复杂流程。随着React Hook Form v6的发布,我们已不再提供对Yup验证的本机支持,转而支持更多元化的验证模式。安装过程简单,只需通过npm安装@hookform/resolvers即可。其核心函数resolver接受两个参数:schema(验证架构对象)和config(验证模式配置对象)。通过导入必要的库和模块,您可以轻松开始使用Clipboard验证解析器,进行简单的对象架构验证。

zip
resolvers-master.zip 预估大小:46个文件
folder
resolvers-master 文件夹
file
.gitignore 474B
file
package.json 3KB
file
.npmrc 18B
file
joi.d.ts 28B
folder
src 文件夹
file
superstruct.ts 2KB
file
joi.test.ts 1KB
file
vest.test.ts 3KB
file
yup.ts 3KB
folder
utils 文件夹
file
convertArrayToPathName.test.ts 425B
file
convertArrayToPathName.ts 310B
file
index.ts 124B
file
zod.test.ts 3KB
file
yup.test.ts 8KB
file
superstruct.test.ts 1KB
folder
__snapshots__ 文件夹
file
yup.test.ts.snap 3KB
file
zod.test.ts.snap 5KB
file
superstruct.test.ts.snap 777B
file
joi.test.ts.snap 266B
file
zod.ts 2KB
file
joi.ts 2KB
file
vest.ts 2KB
file
joi.js 40B
file
jest.config.js 366B
file
superstruct.d.ts 36B
file
LICENSE 1KB
file
yup.js 40B
folder
rollup 文件夹
file
cjs.ie11.js 884B
file
merge-config.js 529B
file
umd.js 581B
file
CHANGELOG.md 318B
file
tsconfig.json 640B
folder
.github 文件夹
folder
workflows 文件夹
file
main.yml 1KB
file
rollup.config.js 105B
file
.eslintrc.js 638B
file
zod.js 40B
file
.prettierrc.js 67B
file
README.md 7KB
file
yup.d.ts 28B
file
vest.js 41B
file
superstruct.js 48B
file
.eslintignore 42B
file
vest.d.ts 29B
file
zod.d.ts 28B
folder
.vscode 文件夹
file
settings.json 332B
file
tsconfig.jest.json 153B
file
yarn.lock 345KB
zip 文件大小:160.99KB