diff --git a/types/redux-form/lib/Field.d.ts b/types/redux-form/lib/Field.d.ts index 8c75977f6c..3409c47842 100644 --- a/types/redux-form/lib/Field.d.ts +++ b/types/redux-form/lib/Field.d.ts @@ -185,7 +185,10 @@ interface WrappedFieldProps { /** * These props are meant to be destructured into your component. */ -type EventOrValueHandler = (eventOrValue: Event | FieldValue, newValue: FieldValue, previousValue: FieldValue) => void; +interface EventOrValueHandler { + (event: Event): void; + (value: FieldValue, newValue: FieldValue, previousValue: FieldValue): void; +} interface WrappedFieldInputProps { /** diff --git a/types/redux-form/lib/reduxForm.d.ts b/types/redux-form/lib/reduxForm.d.ts index e4429015e1..0912233154 100644 --- a/types/redux-form/lib/reduxForm.d.ts +++ b/types/redux-form/lib/reduxForm.d.ts @@ -34,7 +34,7 @@ export interface Config { * 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