UNPKG

formularity

Version:

The last React form library you will ever need!

6 lines (5 loc) 506 B
import { FormErrors, FormTouched, FormValues } from './types'; import { DeepPartial } from './utilityTypes'; export declare const touchAllFields: <TFormValues extends FormValues>(targetObj: TFormValues | DeepPartial<FormErrors<TFormValues>>) => FormTouched<TFormValues>; export declare const getCheckboxValue: (currentValue: string | unknown[] | boolean, checked: boolean, valueProp: unknown) => boolean | unknown[]; export declare const getMultiSelectValues: (options: HTMLOptionsCollection) => string[];