English
@vite-pwa/workbox-window
PackageDeclaration: @vite-pwa/workbox-window
Class Summary
| Type | Description |
|---|---|
| Workbox | A class to aid in handling service worker registration, updates, and reacting to service worker lifecycle events. |
Function Summary
| Name | Description |
|---|---|
| messageSW | Sends a data object to a service worker via postMessage and resolves with a response (if any). |
Interface Summary
| Type | Description |
|---|---|
| WorkboxEventMap | Maps all Workbox lifecycle and message event names to their event types. |
| WorkboxLifecycleEvent | An event describing a change in a service worker's lifecycle. |
| WorkboxLifecycleEventMap | Maps service worker lifecycle event names to their event types. |
| WorkboxLifecycleWaitingEvent | A lifecycle event for a service worker waiting to activate. |
| WorkboxMessageEvent | An event dispatched when a message is received from a service worker. |