UNPKG

rfa

Version:

**React Form Architect** is an ultimate solution for creating and rendering forms in React. Its main focus is to provide users with a tool to define, render and share a form in a browser.

17 lines (16 loc) 524 B
import { Control, FieldError, useForm } from "react-hook-form"; export declare type FormContextType = { register: ReturnType<typeof useForm>["register"]; name: string; }; export declare type FormControlType = { control: Control; name: string; }; export declare type FormCustomRegisterType = FormContextType & { setValue: ReturnType<typeof useForm>["setValue"]; unregister: ReturnType<typeof useForm>["unregister"]; }; export declare type FormFieldError = { error?: FieldError; };