mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-10 17:16:06 +08:00
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:
committed by
GitHub
parent
ae6459f44a
commit
d5aba66148
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