Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript Error: setInterval - Type 'Timer' is not assignable to type 'number' #231

Open
smileyby opened this issue Mar 8, 2022 · 0 comments
Labels
TypeScript 🐰 TypeScript 相关

Comments

@smileyby
Copy link
Owner

smileyby commented Mar 8, 2022

前置内容 setInterval 返回的类型是 NodeJS.Timer
window.setInterval 返回的类型才是 number 类型

https://stackoverflow.com/questions/53189729/typescript-error-setinterval-type-timer-is-not-assignable-to-type-number

@smileyby smileyby added the TypeScript 🐰 TypeScript 相关 label Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TypeScript 🐰 TypeScript 相关
Projects
None yet
Development

No branches or pull requests

1 participant