We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1711cf6 commit a59bf27Copy full SHA for a59bf27
src/useSubmit.ts
@@ -3,7 +3,7 @@ import { Form, Submit } from "./types";
3
import { useMounted } from "./utilities/useMounted";
4
import { useEventCallback } from "./utilities/useEventCallback";
5
6
-type SubmitFn<T> = (values: T) => void | Promise<void>;
+type SubmitFn<T> = (values: T) => void | Promise<any>;
7
8
/**
9
* Create a submit handler for the form.
0 commit comments