From a59bf27b5d4ae5f773ccc04da4ced912ebf4ee6e Mon Sep 17 00:00:00 2001 From: Ray Zane Date: Fri, 11 Sep 2020 16:13:29 -0400 Subject: [PATCH] Allow Promise, because otherwise this is annoying --- src/useSubmit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/useSubmit.ts b/src/useSubmit.ts index 271d9fe..32d2a36 100644 --- a/src/useSubmit.ts +++ b/src/useSubmit.ts @@ -3,7 +3,7 @@ import { Form, Submit } from "./types"; import { useMounted } from "./utilities/useMounted"; import { useEventCallback } from "./utilities/useEventCallback"; -type SubmitFn = (values: T) => void | Promise; +type SubmitFn = (values: T) => void | Promise; /** * Create a submit handler for the form.