Merge pull request #26344 from Reggino/master

Redux-form allows form-values of any type in the store via Field.parse()
This commit is contained in:
Nathan Shively-Sanders
2018-06-20 09:43:51 -07:00
committed by GitHub
3 changed files with 4 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
// Type definitions for redux-form 7.2
// Type definitions for redux-form 7.3
// Project: https://github.com/erikras/redux-form
// Definitions by: Carson Full <https://github.com/carsonf>
// Daniel Lytkin <https://github.com/aikoven>
@@ -7,6 +7,7 @@
// Alex Young <https://github.com/alsiola>
// Anton Novik <https://github.com/tehbi4>
// Huw Martin <https://github.com/huwmartin>
// Tim de Koning <https://github.com/reggino>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6

View File

@@ -18,7 +18,7 @@ export interface FormStateMap {
export interface FormState {
registeredFields: RegisteredFieldState[];
fields?: {[name: string]: FieldState};
values?: { [fieldName: string]: string };
values?: { [fieldName: string]: any };
active?: string;
anyTouched?: boolean;
submitting?: boolean;

View File

@@ -29,7 +29,7 @@ export interface FormStateMap {
export interface FormState {
registeredFields: RegisteredFieldState[];
fields?: {[name: string]: FieldState};
values?: { [fieldName: string]: string };
values?: { [fieldName: string]: any };
active?: string;
anyTouched?: boolean;
submitting?: boolean;