@altiore/form
Version:
Form helper for building powerful forms
5 lines (4 loc) • 432 B
TypeScript
import { FieldMeta } from '../@common/types';
export declare const getArrayValue: (fieldName: string, values: Record<string, any>, items: number[]) => any[];
export declare const toFlatErrors: (errors: Record<string, any>, setErrors: (fieldName: string, errors: string[]) => void, prefix?: string) => void;
export declare const getFormValues: (formRefCurrent: HTMLFormElement | undefined, fields: Record<string, FieldMeta>) => any;