You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to compile it and it fails, because timeout is of type Timer and not Timeout:
> decorator-sample@0.0.1 compile
> tsc -p ./
src/extension.ts:60:17 - error TS2345: Argument of type 'Timer' is not assignable to parameter of type 'string | number | Timeout | undefined'.
Property '[Symbol.dispose]' is missing in type 'Timer' but required in type 'Timeout'.
60 clearTimeout(timeout);
~~~~~~~
node_modules/@types/node/timers.d.ts:76:17
76 [Symbol.dispose](): void;
~~~~~~~~~~~~~~~~~~~~~~~~~
'[Symbol.dispose]' is declared here.
Found 1 error in src/extension.ts:60
The text was updated successfully, but these errors were encountered:
meermustan
added a commit
to meermustan/vscode-extension-samples
that referenced
this issue
Jun 4, 2024
- Fixes the issue microsoft#1027 that while compiling, Timer is Not assignable to parameter of type 'string', So Changes the NodeJs.Timer to NodeJs.Timeout
- After that it's gives another compile error in library so in tscondig.json added flag to skipLibCheck
- Now it's compiling successfully
Extension sample
decorator-sample
VS Code version
1.89.1
What went wrong?
I tried to compile it and it fails, because timeout is of type Timer and not Timeout:
The text was updated successfully, but these errors were encountered: