mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-05 14:59:37 +08:00
Merge pull request #17693 from paibamboo/patch-1
Types for error and warning should not be a string
This commit is contained in:
4
types/redux-form/lib/Field.d.ts
vendored
4
types/redux-form/lib/Field.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user