Answers for "typescript type for intervalId"

2

typescript type for intervalId

let timer: ReturnType<typeof setTimeout> = setTimeout(() => { ... });

clearTimeout(timer);
Posted by: Guest on August-15-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language