Helper for registering service workers.

If you are using SWs you probably want to take a look at these libs:

Hierarchy

  • SwApiHelper

Constructors

Properties

Accessors

Methods

Constructors

Properties

innerInstance: SwApiHelper = ...

Accessors

  • get isSupported(): boolean
  • Checks for SW support.

    Returns boolean

Methods

  • Register service worker with specified path. Returns wrapper for registration object

    Parameters

    • path: string
    • Optional options: RegistrationOptions

    Returns Promise<{
        registration: ServiceWorkerRegistration;
        unregister: (() => Promise<boolean>);
    }>

Generated using TypeDoc