UNPKG

@damilaredev/react-form-validation-hook

Version:
13 lines (10 loc) 413 B
import { ChangeEvent } from 'react'; declare const validate: ({ key, value, values, checks, customValidator, }: any) => any; declare const useFormValidator: (inputs: Record<string, any>) => { values: any; errors: any; isAllFieldsValid: () => boolean; isFieldValid: (key: string) => boolean; updateField: (e?: ChangeEvent<HTMLInputElement>) => void; }; export { useFormValidator, validate };