Download react-hook-form/src/logic/hasValidation.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 257 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-hook-form/src/logic/hasValidation.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/react-hook-form/src/logic/hasValidation.ts
-
curl -L -o hasValidation.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-hook-form/src/logic/hasValidation.ts
257 Bytes
| import type { Field } from '../types'; | |
| export default (options: Field['_f']) => | |
| options.mount && | |
| (options.required || | |
| options.min || | |
| options.max || | |
| options.maxLength || | |
| options.minLength || | |
| options.pattern || | |
| options.validate); | |