Closed
Description
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.
Minimal test-case
https://github.com/wilsonpage/vscode-scope-test-case
Twitter thread w/ @DanielRosenwasser
Metadata
Metadata
Assignees
Labels
No labels