mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 05:20:25 +00:00
Merge pull request #15745 from LKay/lkay/redux-form-quick-fixes
Add quick redux-form fixes
This commit is contained in:
Vendored
+4
-1
@@ -185,7 +185,10 @@ interface WrappedFieldProps<S> {
|
||||
/**
|
||||
* These props are meant to be destructured into your <input/> component.
|
||||
*/
|
||||
type EventOrValueHandler<Event> = (eventOrValue: Event | FieldValue, newValue: FieldValue, previousValue: FieldValue) => void;
|
||||
interface EventOrValueHandler<Event> {
|
||||
(event: Event): void;
|
||||
(value: FieldValue, newValue: FieldValue, previousValue: FieldValue): void;
|
||||
}
|
||||
|
||||
interface WrappedFieldInputProps {
|
||||
/**
|
||||
|
||||
Vendored
+1
-1
@@ -34,7 +34,7 @@ export interface Config<FormData extends DataShape, P, S> {
|
||||
* the name of your form and the key to where your form's state will be
|
||||
* mounted under the redux-form reducer
|
||||
*/
|
||||
form: string;
|
||||
form?: string;
|
||||
|
||||
/**
|
||||
* field names for which onBlur should trigger a call to the asyncValidate
|
||||
|
||||
Reference in New Issue
Block a user