FormSubmitHandler
type FormSubmitHandler<TFieldValues extends FieldValues> = (payload: {
data: TFieldValues;
event?: React.BaseSyntheticEvent;
formData: FormData;
formDataJson: string;
method?: "post" | "put" | "delete";
}) => unknown | Promise<unknown>;§Type Parameters
§
TFieldValues extends FieldValues
[src]§Type
§
(payload: {
[src]data: TFieldValues;
event?: React.BaseSyntheticEvent;
formData: FormData;
formDataJson: string;
method?: "post" | "put" | "delete";
}) => unknown | Promise<unknown>