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
When a .js file is a service-worker, there's no way to define its scope/self/this as ServiceWorkerGlobalScope. This means service-worker only global APIs like self.skipWaiting() are undefined and fail Typescript's checkjs run.
When a
.js
file is a service-worker, there's no way to define its scope/self
/this
asServiceWorkerGlobalScope
. This means service-worker only global APIs likeself.skipWaiting()
are undefined and fail Typescript'scheckjs
run.Minimal test-case
https://github.com/wilsonpage/vscode-scope-test-case
Twitter thread w/ @DanielRosenwasser
https://twitter.com/drosenwasser/status/1113905694028132352
The text was updated successfully, but these errors were encountered: