Types for error and warning should not be a string

From the [doc](http://redux-form.com/6.8.0/docs/api/Field.md/), error and warning are 
> usually, but not necessarily, a String
This commit is contained in:
Gavin Sitthiampornphan
2017-07-03 10:51:09 +07:00
committed by GitHub
parent ae6459f44a
commit d5aba66148

View File

@@ -278,7 +278,7 @@ interface WrappedFieldMetaProps<S> {
* The error for this field if its value is not passing validation. Both
* synchronous, asynchronous, and submit validation errors will be reported here.
*/
error?: string;
error?: any;
/**
* The name of the form. Could be useful if you want to manually dispatch actions.
@@ -329,5 +329,5 @@ interface WrappedFieldMetaProps<S> {
/**
* The warning for this field if its value is not passing warning validation.
*/
warning?: string;
warning?: any;
}