@avarock/react-form
Version:
A customizable React form library with modular input components for building flexible forms
5 lines (4 loc) • 383 B
TypeScript
import type { ReactElement } from "react";
export declare function validateSingleField(formState: Record<string, any>, formErrors: Record<string, any>, children: ReactElement | ReactElement[], name: string): Record<string, any>;
declare function validateForm(formState: Record<string, any>, children: ReactElement | ReactElement[]): Record<string, any>;
export default validateForm;