Skip to content

Commit 9bdb029

Browse files
Update messageerror event's type in service worker to ExtendableMessageEvent (microsoft#2204)
Co-authored-by: saschanaz <saschanaz@users.noreply.github.com>
1 parent 0297597 commit 9bdb029

9 files changed

+21
-21
lines changed

baselines/serviceworker.generated.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7038,7 +7038,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
70387038
"fetch": FetchEvent;
70397039
"install": ExtendableEvent;
70407040
"message": ExtendableMessageEvent;
7041-
"messageerror": MessageEvent;
7041+
"messageerror": ExtendableMessageEvent;
70427042
"notificationclick": NotificationEvent;
70437043
"notificationclose": NotificationEvent;
70447044
"push": PushEvent;
@@ -7075,7 +7075,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
70757075
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
70767076
onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
70777077
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
7078-
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
7078+
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
70797079
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
70807080
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
70817081
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */
@@ -11544,7 +11544,7 @@ declare var oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) =>
1154411544
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
1154511545
declare var onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
1154611546
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
11547-
declare var onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
11547+
declare var onmessageerror: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
1154811548
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
1154911549
declare var onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
1155011550
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */

baselines/ts5.5/serviceworker.generated.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7035,7 +7035,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
70357035
"fetch": FetchEvent;
70367036
"install": ExtendableEvent;
70377037
"message": ExtendableMessageEvent;
7038-
"messageerror": MessageEvent;
7038+
"messageerror": ExtendableMessageEvent;
70397039
"notificationclick": NotificationEvent;
70407040
"notificationclose": NotificationEvent;
70417041
"push": PushEvent;
@@ -7072,7 +7072,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
70727072
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
70737073
onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
70747074
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
7075-
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
7075+
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
70767076
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
70777077
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
70787078
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */
@@ -11541,7 +11541,7 @@ declare var oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) =>
1154111541
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
1154211542
declare var onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
1154311543
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
11544-
declare var onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
11544+
declare var onmessageerror: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
1154511545
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
1154611546
declare var onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
1154711547
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */

baselines/ts5.5/webworker.generated.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8137,7 +8137,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
81378137
"fetch": FetchEvent;
81388138
"install": ExtendableEvent;
81398139
"message": ExtendableMessageEvent;
8140-
"messageerror": MessageEvent;
8140+
"messageerror": ExtendableMessageEvent;
81418141
"notificationclick": NotificationEvent;
81428142
"notificationclose": NotificationEvent;
81438143
"push": PushEvent;
@@ -8174,7 +8174,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
81748174
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
81758175
onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
81768176
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
8177-
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
8177+
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
81788178
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
81798179
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
81808180
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */

baselines/ts5.6/serviceworker.generated.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7035,7 +7035,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
70357035
"fetch": FetchEvent;
70367036
"install": ExtendableEvent;
70377037
"message": ExtendableMessageEvent;
7038-
"messageerror": MessageEvent;
7038+
"messageerror": ExtendableMessageEvent;
70397039
"notificationclick": NotificationEvent;
70407040
"notificationclose": NotificationEvent;
70417041
"push": PushEvent;
@@ -7072,7 +7072,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
70727072
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
70737073
onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
70747074
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
7075-
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
7075+
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
70767076
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
70777077
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
70787078
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */
@@ -11541,7 +11541,7 @@ declare var oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) =>
1154111541
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
1154211542
declare var onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
1154311543
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
11544-
declare var onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
11544+
declare var onmessageerror: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
1154511545
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
1154611546
declare var onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
1154711547
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */

baselines/ts5.6/webworker.generated.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8137,7 +8137,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
81378137
"fetch": FetchEvent;
81388138
"install": ExtendableEvent;
81398139
"message": ExtendableMessageEvent;
8140-
"messageerror": MessageEvent;
8140+
"messageerror": ExtendableMessageEvent;
81418141
"notificationclick": NotificationEvent;
81428142
"notificationclose": NotificationEvent;
81438143
"push": PushEvent;
@@ -8174,7 +8174,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
81748174
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
81758175
onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
81768176
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
8177-
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
8177+
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
81788178
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
81798179
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
81808180
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */

baselines/ts5.9/serviceworker.generated.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7035,7 +7035,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
70357035
"fetch": FetchEvent;
70367036
"install": ExtendableEvent;
70377037
"message": ExtendableMessageEvent;
7038-
"messageerror": MessageEvent;
7038+
"messageerror": ExtendableMessageEvent;
70397039
"notificationclick": NotificationEvent;
70407040
"notificationclose": NotificationEvent;
70417041
"push": PushEvent;
@@ -7072,7 +7072,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
70727072
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
70737073
onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
70747074
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
7075-
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
7075+
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
70767076
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
70777077
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
70787078
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */
@@ -11541,7 +11541,7 @@ declare var oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) =>
1154111541
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
1154211542
declare var onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
1154311543
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
11544-
declare var onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
11544+
declare var onmessageerror: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
1154511545
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
1154611546
declare var onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
1154711547
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */

baselines/ts5.9/webworker.generated.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8137,7 +8137,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
81378137
"fetch": FetchEvent;
81388138
"install": ExtendableEvent;
81398139
"message": ExtendableMessageEvent;
8140-
"messageerror": MessageEvent;
8140+
"messageerror": ExtendableMessageEvent;
81418141
"notificationclick": NotificationEvent;
81428142
"notificationclose": NotificationEvent;
81438143
"push": PushEvent;
@@ -8174,7 +8174,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
81748174
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
81758175
onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
81768176
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
8177-
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
8177+
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
81788178
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
81798179
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
81808180
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */

baselines/webworker.generated.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8140,7 +8140,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
81408140
"fetch": FetchEvent;
81418141
"install": ExtendableEvent;
81428142
"message": ExtendableMessageEvent;
8143-
"messageerror": MessageEvent;
8143+
"messageerror": ExtendableMessageEvent;
81448144
"notificationclick": NotificationEvent;
81458145
"notificationclose": NotificationEvent;
81468146
"push": PushEvent;
@@ -8177,7 +8177,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
81778177
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
81788178
onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
81798179
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
8180-
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
8180+
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
81818181
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
81828182
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
81838183
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */

inputfiles/overridingTypes.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2245,7 +2245,7 @@
22452245
},
22462246
{
22472247
"name": "messageerror",
2248-
"type": "MessageEvent"
2248+
"type": "ExtendableMessageEvent"
22492249
},
22502250
{
22512251
"name": "notificationclick",

0 commit comments

Comments
 (0)