react-router4的withRouter在typescript新版本下面会类型报错,有遇到过相似问题的吗?

react-router4的withRouter在typescript新版本下面会类型报错,有遇到过相似问题的吗?https://img1.mukewang.com/5b4d814600010f8604420295.jpghttps://img3.mukewang.com/5b4d8149000172d810690215.jpghttps://img2.mukewang.com/5b4d814f0001750c07550233.jpg

慕娘0128612
浏览 3310回答 1
1回答

cnyballk

withRouter(A  as any),这样吧
打开App,查看更多内容
随时随地看视频慕课网APP