Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript type for intervalId

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

clearTimeout(timer);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript #type #intervalId
ADD COMMENT
Topic
Name
3+4 =