FormValidateFn

Type Alias: FormValidateFn()<TFormData, TFormValidator>

ts
type FormValidateFn<TFormData, TFormValidator>: (props) => FormValidationError<TFormData>;
type FormValidateFn<TFormData, TFormValidator>: (props) => FormValidationError<TFormData>;

Type Parameters

TFormData

TFormValidator extends Validator<TFormData, unknown> | undefined = undefined

Parameters

props

props.formApi: FormApi<TFormData, TFormValidator>

props.value: TFormData

Returns

FormValidationError<TFormData>

Defined in

packages/form-core/src/FormApi.ts:30

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.