From 7f7b9dfddcb0dbe0285699bf8b3caaa2c0981b0a Mon Sep 17 00:00:00 2001 From: Omer Bokhari Date: Fri, 10 Feb 2017 22:48:48 -0800 Subject: [PATCH 1/3] Add missing asyncValidate argument --- redux-form/lib/reduxForm.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/redux-form/lib/reduxForm.d.ts b/redux-form/lib/reduxForm.d.ts index 512797a39c..dc13fa9a9b 100644 --- a/redux-form/lib/reduxForm.d.ts +++ b/redux-form/lib/reduxForm.d.ts @@ -48,14 +48,14 @@ export interface Config { asyncBlurFields?: string[]; /** - * a function that takes all the form values, the dispatch function, and - * the props given to your component, and returns a Promise that will - * resolve if the validation is passed, or will reject with an object of - * validation errors in the form { field1: , field2: }. + * a function that takes all the form values, the dispatch function, + * the props given to your component and the current blurred field, + * and returns a Promise that will resolve if the validation is passed, + * or will reject with an object of validation errors in the form { field1: , field2: }. * * See Asynchronous Blur Validation Example for more details. */ - asyncValidate?(values: FormData, dispatch: Dispatch, props: P): Promise; + asyncValidate?(values: FormData, dispatch: Dispatch, props: P, blurredField: string): Promise; /** * Whether or not to automatically destroy your form's state in the Redux From 324faf6289ab3f86e0d06740c7a4b4539f79ac3c Mon Sep 17 00:00:00 2001 From: Omer Bokhari Date: Fri, 10 Feb 2017 23:24:23 -0800 Subject: [PATCH 2/3] Increase version number in header from 6.3.1 to 6.3.3, since 6.3.2 is the currently published version --- redux-form/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redux-form/index.d.ts b/redux-form/index.d.ts index 590fe3a633..b5b2d60de4 100644 --- a/redux-form/index.d.ts +++ b/redux-form/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for redux-form v6.3.1 +// Type definitions for redux-form v6.3.3 // Project: https://github.com/erikras/redux-form // Definitions by: Carson Full , Daniel Lytkin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped From 7aaf957deb409060efc12dcafa001708f677cbb5 Mon Sep 17 00:00:00 2001 From: Omer Bokhari Date: Tue, 14 Feb 2017 17:08:01 -0800 Subject: [PATCH 3/3] remove author at their request --- redux-form/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redux-form/index.d.ts b/redux-form/index.d.ts index b5b2d60de4..f36162d684 100644 --- a/redux-form/index.d.ts +++ b/redux-form/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for redux-form v6.3.3 // Project: https://github.com/erikras/redux-form -// Definitions by: Carson Full , Daniel Lytkin +// Definitions by: Carson Full // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1