Skip to content

ServiceWorkerRegistration.update() should return Promise<ServiceWorkerRegistration> #1684

@jespertheend

Description

@jespertheend

Currently it is defined in lib.dom.ts to return Promise<void>.

See the MDN page for update() which mentions:

Return value
A Promise that resolves with a ServiceWorkerRegistration object.

The spec is a bit unclear because it mentions some job logic:

  1. Let job be the result of running Create Job with update

but in the end it seems like this promise is always resolved with a ServiceWorkerRegistration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions