Closed
Description
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: