type UseField<TParentData, TFormValidator>: <TName, TFieldValidator, TData>(opts) => FieldApi<TParentData, TName, TFieldValidator, TFormValidator, TData>;
type UseField<TParentData, TFormValidator>: <TName, TFieldValidator, TData>(opts) => FieldApi<TParentData, TName, TFieldValidator, TFormValidator, TData>;
A type representing a hook for using a field in a form with the given form data type.
A function that takes an optional object with a name property and field options, and returns a FieldApi instance for the specified field.
• TParentData
• TFormValidator extends Validator<TParentData, unknown> | undefined = undefined
• TName extends DeepKeys<TParentData>
• TFieldValidator extends Validator<DeepValue<TParentData, TName>, unknown> | undefined = undefined
• TData extends DeepValue<TParentData, TName> = DeepValue<TParentData, TName>
• opts: Omit<UseFieldOptions<TParentData, TName, TFieldValidator, TFormValidator, TData>, "form">
FieldApi<TParentData, TName, TFieldValidator, TFormValidator, TData>
Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.