Merge pull request #17693 from paibamboo/patch-1

Types for error and warning should not be a string
This commit is contained in:
Ron Buckton
2017-07-05 16:57:53 -07:00
committed by GitHub

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;
}