diff --git a/redux-form/lib/reduxForm.d.ts b/redux-form/lib/reduxForm.d.ts index bcfafe2e3a..100a708032 100644 --- a/redux-form/lib/reduxForm.d.ts +++ b/redux-form/lib/reduxForm.d.ts @@ -30,7 +30,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; /** * An adapter function that will render a component based on a string component diff --git a/redux-form/redux-form-tests.tsx b/redux-form/redux-form-tests.tsx index f37e1e9815..396ca8df85 100644 --- a/redux-form/redux-form-tests.tsx +++ b/redux-form/redux-form-tests.tsx @@ -57,7 +57,8 @@ reduxForm({ form: 'mySFCForm' })(MyStatelessFunctionalComponent); -class MyReusableForm extends Component { +@reduxForm({}) +class MyDynamicForm extends Component { render() { return (