getRegistration in ServiceWorkerContainer's optional parameter is missing from 2.6.1 #20065
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Fixed
A PR has been merged for this issue
Help Wanted
You can do this
Milestone
In 2.5.2,
getRegistration
has an optional parameterclientURL?: 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:
The text was updated successfully, but these errors were encountered: