Skip to content

Commit

Permalink
Allow Promise<any>, because otherwise this is annoying
Browse files Browse the repository at this point in the history
  • Loading branch information
rzane committed Sep 11, 2020
1 parent 1711cf6 commit a59bf27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useSubmit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Form, Submit } from "./types";
import { useMounted } from "./utilities/useMounted";
import { useEventCallback } from "./utilities/useEventCallback";

type SubmitFn<T> = (values: T) => void | Promise<void>;
type SubmitFn<T> = (values: T) => void | Promise<any>;

/**
* Create a submit handler for the form.
Expand Down

0 comments on commit a59bf27

Please sign in to comment.