egret-core icon indicating copy to clipboard operation
egret-core copied to clipboard

Cannot find name 'ReturnType

Open tmp222 opened this issue 5 years ago • 1 comments

如题:

//该段代码出现如题错误
type State = ReturnType<typeof reducers>;

Wing 版本 4.1.6 egret 版本 5.2.33

tmp222 avatar Jul 18 '20 09:07 tmp222

egret用的ts是2.7的,只支持早期ts语法 我之前PR了,基于dom chen的tsplus升级到ts3.7的,一直没被采纳 #302 你可以自行更新一下

eos3tion avatar Jul 18 '20 14:07 eos3tion