Merge pull request #15745 from LKay/lkay/redux-form-quick-fixes

Add quick redux-form fixes
This commit is contained in:
Yui
2017-04-14 07:59:19 -07:00
committed by GitHub
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -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 {
/**
+1 -1
View File
@@ -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