newest version of @types/node and TypeScript is sometime throwing some errors
I thought that we should always use setTimeout directly but its type is NodeJS.timeout type, however we should be using window.setTimeout with a return type of number instead since our project is always a Browser App hence the use of the window object
@types/node
and TypeScript is sometime throwing some errorssetTimeout
directly but its type isNodeJS.timeout
type, however we should be usingwindow.setTimeout
with a return type ofnumber
instead since our project is always a Browser App hence the use of thewindow
object