Skip to content

Commit a59bf27

Browse files
committed
Allow Promise<any>, because otherwise this is annoying
1 parent 1711cf6 commit a59bf27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/useSubmit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Form, Submit } from "./types";
33
import { useMounted } from "./utilities/useMounted";
44
import { useEventCallback } from "./utilities/useEventCallback";
55

6-
type SubmitFn<T> = (values: T) => void | Promise<void>;
6+
type SubmitFn<T> = (values: T) => void | Promise<any>;
77

88
/**
99
* Create a submit handler for the form.

0 commit comments

Comments
 (0)