English
WorkboxLifecycleEvent
Interface @vite-pwa/workbox-windowAn event describing a change in a service worker's lifecycle.
Properties
| Property | Type | Default | Description |
|---|---|---|---|
isExternal? | boolean | Whether this event is associated with an external service worker. | |
isUpdate? | boolean | Whether a service worker was already controlling when register() was called. | |
originalEvent? | Event | The browser event that triggered this event, when available. | |
sw? | ServiceWorker | The service worker associated with this event. | |
target? | WorkboxEventTarget | The Workbox instance that dispatched this event. | |
type | keyof WorkboxLifecycleEventMap | The event type. |