Download node_modules/@hookform/resolvers/superstruct/dist/superstruct.modern.mjs from metarm/QMetaRam: direct link, hf CLI and curl.
- Browser
- Download file 458 Bytes
-
https://huggingface.co/metarm/QMetaRam/resolve/main/node_modules/%40hookform/resolvers/superstruct/dist/superstruct.modern.mjs
- Command line
-
hf download hf://metarm/QMetaRam/node_modules/@hookform/resolvers/superstruct/dist/superstruct.modern.mjs
-
curl -L -o superstruct.modern.mjs https://huggingface.co/metarm/QMetaRam/resolve/main/node_modules/%40hookform/resolvers/superstruct/dist/superstruct.modern.mjs
458 Bytes
| import{toNestErrors as r,validateFieldsNatively as e}from"@hookform/resolvers";import{validate as s}from"superstruct";const o=(o,t,a={})=>(u,i,m)=>{const p=s(u,o,t);return p[0]?{values:{},errors:r((l=p[0],l.failures().reduce((r,e)=>(r[e.path.join(".")]={message:e.message,type:e.type})&&r,{})),m)}:(m.shouldUseNativeValidation&&e({},m),{values:a.raw?u:p[1],errors:{}});var l};export{o as superstructResolver}; | |
| //# sourceMappingURL=superstruct.modern.mjs.map | |