【typescript】redux-thunk中间件派发函数致使connect类型报错解决方案

场景复现 因为使用redux-thunk,因此action是容许派发函数的。可是写个action函数后作成mapDispatchToProps传给组件后,connect检测类型产生报错,报错以下: function Profile(props: React.PropsWithChildren<RouteComponentProps<{}, StaticContext, History<Histor
相关文章
相关标签/搜索