You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I import it with extra props like this: <Container options={options} fieldType={fieldType} />
It throws a type error. I've noticed that changing to this works: connect<{}, {}, {}, {}>
When using this format: const Container: ComponentClass = class extends Component<any>
the type error occurred here:
I don't think we have a way to infer the types of mapStateToProps and mapActionToProps automatically, so you have to type them and use connect<ContainerProps, ContainerState, StoreState, InjectedProps>.
Activity
developit commentedon Mar 1, 2019
I don't think we have a way to infer the types of mapStateToProps and mapActionToProps automatically, so you have to type them and use
connect<ContainerProps, ContainerState, StoreState, InjectedProps>.