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'm working on a JS (not TS) project and using VSCode/Typecripts checkjs feature to check/lint the project.
I'm unable to find a way of defining the scope of just the service-worker file to ServiceWorkerGlobalScope without changing the scope of the other files from Window.
I've tried various combinations of sibling .d.ts files and /// <reference lib="…" /> but many of them seem to operate on the project in a 'global' manner, changing the default-lib/scope of all .js files causing loads of errors.
I'm working on a JS (not TS) project and using VSCode/Typecripts checkjs feature to check/lint the project.
I'm unable to find a way of defining the scope of just the service-worker file to
ServiceWorkerGlobalScope
without changing the scope of the other files fromWindow
.I've tried various combinations of sibling
.d.ts
files and/// <reference lib="…" />
but many of them seem to operate on the project in a 'global' manner, changing the default-lib/scope of all.js
files causing loads of errors.Test Case
https://github.com/wilsonpage/vscode-scope-test-case
The text was updated successfully, but these errors were encountered: