Skip to content

getRegistration in ServiceWorkerContainer's optional parameter is missing from 2.6.1 #20065

@cheung-chifung

Description

@cheung-chifung

In 2.5.2, getRegistration has an optional parameter clientURL?: USVString, which is missing from 2.6.1.

According to MDN, this parameter is optional.

https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/getRegistration

Maybe a coding miss in this diff: https://github.com/Microsoft/TypeScript/pull/18774/files#diff-46fd87925e4552c166ec188712741c3fL9534

TypeScript Version: 2.6.1

Code

Expected behavior:

clientURL should be acceptable.

Actual behavior:

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueHelp WantedYou can do this

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions