Skip to content

@vite-pwa/workbox-window ​

Package

Declaration: @vite-pwa/workbox-window

Class Summary ​

TypeDescription
Workbox A class to aid in handling service worker registration, updates, and reacting to service worker lifecycle events.

Function Summary ​

NameDescription
messageSW Sends a data object to a service worker via postMessage and resolves with a response (if any).

Interface Summary ​

TypeDescription
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.

Released under the MIT License.