This module can only be imported in service workers. ```js // @noErrors import { self } from '$app/service-worker'; ``` ## self The execution context of a service worker. This export exists to make it easier to use service workers with the correct types, provided the importing module is governed by a `tsconfig.json` that extends [`$app/tsconfig/service-worker`](/docs/kit/$app-tsconfig-service-worker).
```dts const self: ServiceWorkerGlobalScope; ```