Type 'Timeout' is not assignable to type 'number'

2020-06-177142次阅读TypeScript

遇到Type 'Timeout' is not assignable to type 'number'错误时,您可以尝试使用window.setTimeout而不是setTimeout,这样就可以明确在TypeScript中使用。

上一篇: CSS计数器CSS counters给数字后面加背景  下一篇: 解决npm安装错误:No matching version found for event-stream@3.3.6  

Type 'Timeout' is not assignable to type 'number'相关文章