Merge pull request #32032 from mshaaban088/fix/redux-form-action-signature

[redux-form] Fix signature of `blur` and `change` actions
This commit is contained in:
Ron Buckton
2019-01-18 14:49:19 -08:00
committed by GitHub
4 changed files with 10 additions and 5 deletions
+1
View File
@@ -11,6 +11,7 @@
// Tim de Koning <https://github.com/reggino>
// Maddi Joyce <https://github.com/maddijoyce>
// Kamil Wojcik <https://github.com/smifun>
// Mohamed Shaaban <https://github.com/mshaaban088>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.0
import {
+2 -2
View File
@@ -18,8 +18,8 @@ export declare function arraySplice(form: string, field: string, index: number,
export declare function arraySwap(form: string, field: string, indexA: number, indexB: number): FormAction;
export declare function arrayUnshift(form: string, field: string, value: any): FormAction;
export declare function autofill(form: string, field: string, value: any): FormAction;
export declare function blur(form: string, field: string, value: any): FormAction;
export declare function change(form: string, field: string, value: any): FormAction;
export declare function blur(form: string, field: string, value: any, touch?: boolean): FormAction;
export declare function change(form: string, field: string, value: any, touch?: boolean, persistentSubmitErrors?: boolean): FormAction;
export declare function destroy(...form: string[]): FormAction;
export declare function focus(form: string, field: string): FormAction;
+5 -1
View File
@@ -1,6 +1,10 @@
// Type definitions for redux-form 6.6
// Project: https://github.com/erikras/redux-form
// Definitions by: Carson Full <https://github.com/carsonf>, Daniel Lytkin <https://github.com/aikoven>, Karol Janyst <https://github.com/LKay>, Luka Zakrajsek <https://github.com/bancek>
// Definitions by: Carson Full <https://github.com/carsonf>
// Daniel Lytkin <https://github.com/aikoven>
// Karol Janyst <https://github.com/LKay>
// Luka Zakrajsek <https://github.com/bancek>
// Mohamed Shaaban <https://github.com/mshaaban088>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.0
+2 -2
View File
@@ -66,12 +66,12 @@ export function autofill(form: string, field: string, value: any): FormAction;
/**
* Saves the value to the field
*/
export function blur(form: string, field: string, value: any): FormAction;
export function blur(form: string, field: string, value: any, touch?: boolean): FormAction;
/**
* Saves the value to the field
*/
export function change(form: string, field: string, value: any): FormAction;
export function change(form: string, field: string, value: any, touch?: boolean, persistentSubmitErrors?: boolean): FormAction;
/**
* Destroys the form, removing all it's state