Skip to content

webworker lib: Clients#get returns Promise<any>, should return Promise<Client | undefined>Β #36705

@OliverJAsh

Description

@OliverJAsh

TypeScript Version: 3.7.5

Search Terms:

Code

// A *self-contained* demonstration of the problem follows...
// Test this by running `tsc` on the command-line, rather than through another build tool such as Gulp, Webpack, etc.

Expected behavior:

https://w3c.github.io/ServiceWorker/#dom-clients-get

get(id: string): Promise<Client | undefined>;

Actual behavior:

get(id: string): Promise<any>;

Playground Link:

Related Issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions