我已经创建了一个名为'ServerData‘的接口,它包含一个对象-我从Musixmatch请求的歌曲数据。我想用Axios获取一首歌曲,然后将其放入initialState,但由于我是新接触接口,我不确定如何处理我的响应,以便它可以适应ServerData接口。当我将鼠标悬停在错误上时,它会显示:Type '{ randomSong: object; }' is not assignable to type 'never' 如果这是相关的</em
在满足axios请求后,我正在尝试使用componentDidMount执行setState,出现错误Type 'string' is not assignable to type 'never'.StateFromProps, DispatchFromProps, OwnProps>( mapDispatchToProps错误日志/root/.npm/_logs/2021-07-