mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
[redux-form] "reduxForm()" "Config" interface definition has been adjusted to (#14798)
make the "form" property optional, to more accurately reflect the API.
This commit is contained in:
Vendored
+1
-1
@@ -30,7 +30,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;
|
||||
|
||||
/**
|
||||
* An adapter function that will render a component based on a string component
|
||||
|
||||
@@ -57,7 +57,8 @@ reduxForm({
|
||||
form: 'mySFCForm'
|
||||
})(MyStatelessFunctionalComponent);
|
||||
|
||||
class MyReusableForm extends Component<void, undefined> {
|
||||
@reduxForm<FormData, any, any>({})
|
||||
class MyDynamicForm extends Component<void, undefined> {
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user