Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

FormSubmitHandler

type FormSubmitHandler<TFieldValues extends FieldValues> = (payload: {
data: TFieldValues;
formData: FormData;
formDataJson: string;
method?: "post" | "put" | "delete";
}
) => unknown | Promise<unknown>
;

§Type Parameters

§
TFieldValues extends FieldValues
[src]

§Type

§
(payload: {
data: TFieldValues;
formData: FormData;
formDataJson: string;
method?: "post" | "put" | "delete";
}
) => unknown | Promise<unknown>
[src]