diff --git a/types/redux-form/lib/reduxForm.d.ts b/types/redux-form/lib/reduxForm.d.ts index 0912233154..61fb88ac23 100644 --- a/types/redux-form/lib/reduxForm.d.ts +++ b/types/redux-form/lib/reduxForm.d.ts @@ -119,13 +119,18 @@ export interface Config { * @param dispatch The Redux `dispatch` function. * @param submitError The error object that caused the submission to fail. If `errors` is set this will be most * likely a `SubmissionError`, otherwise it can be any error or null. + * @param props The props passed into your decorated component. */ - onSubmitFail?(errors: FormErrors, dispatch: Dispatch, submitError: any): void; + onSubmitFail?(errors: FormErrors, dispatch: Dispatch, submitError: any, props: P): void; /** * A callback function that will be called when a submission succeeds. + * + * @param result Any result that onSubmit has returned + * @param dispatch The Redux dispatch function + * @param props The props passed into your decorated component */ - onSubmitSuccess?(result: any, dispatch: Dispatch): void; + onSubmitSuccess?(result: any, dispatch: Dispatch, props: P): void; /** * If specified, all the props normally passed into your decorated