Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using in a JS project, seems to impact all other files #3

Open
wilsonpage opened this issue Apr 4, 2019 · 0 comments
Open

When using in a JS project, seems to impact all other files #3

wilsonpage opened this issue Apr 4, 2019 · 0 comments

Comments

@wilsonpage
Copy link

wilsonpage commented Apr 4, 2019

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.

Test Case

https://github.com/wilsonpage/vscode-scope-test-case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant