• English
  • Interface: RegisterSwBindingReturnValue<TNewSwActiveState, TNewSwWaitingState, TOfflineReadyState>

    Extends

    Extended by

    Type Parameters

    TNewSwActiveState

    TNewSwActiveState

    TNewSwWaitingState

    TNewSwWaitingState

    TOfflineReadyState

    TOfflineReadyState

    Properties

    newSwActive

    newSwActive: TNewSwActiveState

    The new SW is controlling the page.


    newSwWaiting

    newSwWaiting: TNewSwWaitingState

    The newer SW gets installed alongside the previous one, but the old one is still controlling the page.


    offlineReady

    offlineReady: TOfflineReadyState

    The SW is ready to work offline.


    skipWaiting()

    skipWaiting: () => Promise<void>

    Sends a {type: 'SKIP_WAITING'} message to the SW that's currently in the waiting state associated with the current registration.

    Returns

    Promise<void>

    Inherited from

    RegisterSWReturnValue.skipWaiting