UNPKG

@matthew.ngo/reform

Version:

A flexible and powerful React form management library with advanced validation, state observation, and multi-group support

6 lines (5 loc) 286 B
import { FieldError, FieldErrors } from 'react-hook-form'; import { FormGroup } from '../form/form-groups'; export declare const transformFormErrors: <T>(errors: FieldErrors<{ groups: FormGroup<T>[]; }>, labels?: Record<string, any> | undefined) => Record<string, FieldError>;