Skip to content

Commit fb1a210

Browse files
martijnbolanderikras
authored andcommitted
Changed result of handleSubmit() form render prop to promise instead of void (#304)
1 parent cf525ce commit fb1a210

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ export interface SubsetFormApi {
5353
export interface FormRenderProps extends FormState, SubsetFormApi {
5454
batch: (fn: () => void) => void
5555
form: FormApi
56-
handleSubmit: (event?: React.SyntheticEvent<HTMLFormElement>) => void
56+
handleSubmit: (
57+
event?: React.SyntheticEvent<HTMLFormElement>
58+
) => Promise<object | undefined> | undefined
5759
}
5860

5961
export interface FormSpyRenderProps extends FormState, SubsetFormApi {

0 commit comments

Comments
 (0)