mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
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:
Vendored
+1
@@ -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 {
|
||||
|
||||
Vendored
+2
-2
@@ -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;
|
||||
|
||||
|
||||
Vendored
+5
-1
@@ -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
|
||||
|
||||
|
||||
Vendored
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user