这里的&是指交集吗?既要符合前面那个又要符合后面那个是吗?看文档没看明白
来源:8-9 【redux封装】在类组件中使用react-redux

慕神2393367
2021-09-16
输入正文
写回答
1回答
-
阿莱克斯刘
2021-09-17
你说的是以下的代码吗?
type PropsType = RouteComponentProps & // react-router 路由props类型 WithTranslation & // i18n props类型 ReturnType<typeof mapStateToProps> & // redux store 映射类型 ReturnType<typeof mapDispatchToProps>; // redux dispatch 映射类型
这里的“&”操作符号不是交集而是并集。
00
相似问题