Removed Partial from onSubmit values (#24816)

see iss: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/24376
This commit is contained in:
Rockson
2018-04-14 21:12:50 +02:00
committed by Mohamed Hegazy
parent 6df4ebfc1a
commit dda14dffe3

View File

@@ -18,7 +18,7 @@ import {
} from "../index";
export type FormSubmitHandler<FormData = {}, P = {}> =
(values: Partial<FormData>, dispatch: Dispatch<any>, props: P) => void | FormErrors<FormData> | Promise<any>;
(values: FormData, dispatch: Dispatch<any>, props: P) => void | FormErrors<FormData> | Promise<any>;
export interface SubmitHandler<FormData = {}, P = {}> {
(