mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
error can be anything, you decide
I was wrong. 'Error' is whatever YOUR validate and asyncValidate functions will return.
This commit is contained in:
Vendored
+2
-2
@@ -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?: any;
|
||||
|
||||
/**
|
||||
* 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?: any;
|
||||
|
||||
/**
|
||||
* The form data, in the form { field1: <Object>, field2: <Object> }. The
|
||||
|
||||
Reference in New Issue
Block a user