Merge pull request #10446 from Strato/patch-1

error is an array of string
This commit is contained in:
Mine Starks
2016-08-04 10:42:17 -07:00
committed by GitHub
+2 -2
View File
@@ -39,7 +39,7 @@ declare module 'redux-form' {
* The error for this field if its value is not passing validation. Both
* synchronous and asynchronous validation errors will be reported here.
*/
error?: string;
error?: string[];
/**
* The value for this field as supplied in initialValues to the form.
@@ -163,7 +163,7 @@ declare module 'redux-form' {
* result from the synchronous validation function, the asynchronous
* validation, or the rejected promise from onSubmit.
*/
error?: string;
error?: string[];
/**
* The form data, in the form { field1: <Object>, field2: <Object> }. The