There is a sample of setTimeout using in angular and typescript:
let timer: number = setTimeout(() => {
}, 2000);
On compilation I get this message:
error TS2322: Type 'Timeout' is not assignable to type 'number'.
Ho do I use setTimeout with typescript?
let timer: Timeout = ...maybe?tsconfig.jsonfile?