@kform/react
Version:
React integration for KForm.
10 lines (9 loc) • 380 B
TypeScript
import { FormController } from "./useForm";
/**
* Hook providing access to the controller of the form in context.
*
* @returns Controller of the form in context.
* @throws {NoFormContextError} When no form is in context.
* @throws {NoFormControllerError} When no form controller is in context.
*/
export declare function useFormController<T = unknown>(): FormController<T>;