UNPKG

@kform/react

Version:

React integration for KForm.

9 lines (8 loc) 377 B
import { FormController } from "./useForm"; /** * Hook providing access to the controller of the form in context. * @throws {NoFormContextError} When no form is in context. * @throws {NoFormControllerError} When no form controller is in context. * @returns Controller of the form in context. */ export declare function useFormController<T = unknown>(): FormController<T>;