dmonad / lib0

Monorepo of isomorphic utility functions
MIT License
362 stars 65 forks source link

implement isomorphic setTimeout & setInterval #25

Closed dmonad closed 2 years ago

dmonad commented 3 years ago

typescript uses nodejs types when calling setTimes() => NodeJS.Timeout. Sadly, the default setTimeout function is not isomorphic as it depends on node types that are not available in some environments.