createFormHookContexts
export exported by @mwillbanks/tuil-form.
export
Public export exported by @mwillbanks/tuil-form.
export declare function createFormHookContexts(): {
fieldContext: Context<AnyFieldApi>;
useFieldContext: <TData>() => FieldApi<any, string, TData, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any>;
useFormContext: typeof useFormContext;
formContext: Context<AnyFormApi>;
};Members
This declaration has no public members.
Parameters
This declaration has no public members.
Returns
{ fieldContext: Context<AnyFieldApi>; useFieldContext: <TData>() => FieldApi<any, string, TData, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any>; useFormContext: typeof useFormContext; formContext: Context<AnyFormApi>; } — Returns a value that satisfies { fieldContext: Context<AnyFieldApi>; useFieldContext: <TData>() => FieldApi<any, string, TData, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any>; useFormContext: typeof useFormContext; formContext: Context<AnyFormApi>; }.
Related types: —
Throws
No thrown errors are documented for this declaration.
Related types
No package-local related types.
Source
View the secondary source reference