UNPKG

react-hook-form

Version:

Performant, flexible and extensible forms library for React Hooks

5 lines (4 loc) 599 B
import * as React from 'react'; import { Field, FieldRefs, FieldError, InternalFieldName, FlatFieldErrors } from '../types'; declare const _default: <TFieldValues extends Record<string, any>>(fieldsRef: React.MutableRefObject<Partial<Record<InternalFieldName<TFieldValues>, Field>>>, validateAllFieldCriteria: boolean, { ref, ref: { type, value }, options, required, maxLength, minLength, min, max, pattern, validate, }: Field, unmountFieldsStateRef: React.MutableRefObject<Record<string, any>>) => Promise<Partial<Record<InternalFieldName<TFieldValues>, FieldError>>>; export default _default;