Skip to content

Commit 473fcb5

Browse files
Fix getRegistration's parameter
Issue: microsoft/TypeScript#20065
1 parent 718e339 commit 473fcb5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

baselines/dom.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9713,7 +9713,7 @@ interface ServiceWorkerContainer extends EventTarget {
97139713
oncontrollerchange: (this: ServiceWorkerContainer, ev: Event) => any;
97149714
onmessage: (this: ServiceWorkerContainer, ev: ServiceWorkerMessageEvent) => any;
97159715
readonly ready: Promise<ServiceWorkerRegistration>;
9716-
getRegistration(): Promise<ServiceWorkerRegistration | undefined>;
9716+
getRegistration(clientURL?: USVString): Promise<ServiceWorkerRegistration | undefined>;
97179717
getRegistrations(): Promise<ServiceWorkerRegistration[]>;
97189718
register(scriptURL: USVString, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
97199719
addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;

inputfiles/overridingTypes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1663,7 +1663,7 @@
16631663
"interface": "ServiceWorkerContainer",
16641664
"name": "getRegistration",
16651665
"signatures": [
1666-
"getRegistration(): Promise<ServiceWorkerRegistration | undefined>"
1666+
"getRegistration(clientURL?: USVString): Promise<ServiceWorkerRegistration | undefined>"
16671667
]
16681668
},
16691669
{

0 commit comments

Comments
 (0)