Skip to content

Commit c84a6d4

Browse files
Bashamegasaschanaz
andauthored
Add InstallEvent (#2364)
Co-authored-by: saschanaz <[email protected]>
1 parent be2b46d commit c84a6d4

9 files changed

+104
-4
lines changed

baselines/serviceworker.generated.d.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5455,6 +5455,19 @@ interface ImportMeta {
54555455
resolve(specifier: string): string;
54565456
}
54575457

5458+
/**
5459+
* The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation.
5460+
*
5461+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent)
5462+
*/
5463+
interface InstallEvent extends ExtendableEvent {
5464+
}
5465+
5466+
declare var InstallEvent: {
5467+
prototype: InstallEvent;
5468+
new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent;
5469+
};
5470+
54585471
/**
54595472
* The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime.
54605473
*

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5452,6 +5452,19 @@ interface ImportMeta {
54525452
resolve(specifier: string): string;
54535453
}
54545454

5455+
/**
5456+
* The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation.
5457+
*
5458+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent)
5459+
*/
5460+
interface InstallEvent extends ExtendableEvent {
5461+
}
5462+
5463+
declare var InstallEvent: {
5464+
prototype: InstallEvent;
5465+
new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent;
5466+
};
5467+
54555468
/**
54565469
* The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime.
54575470
*

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6293,6 +6293,19 @@ interface ImportMeta {
62936293
resolve(specifier: string): string;
62946294
}
62956295

6296+
/**
6297+
* The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation.
6298+
*
6299+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent)
6300+
*/
6301+
interface InstallEvent extends ExtendableEvent {
6302+
}
6303+
6304+
declare var InstallEvent: {
6305+
prototype: InstallEvent;
6306+
new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent;
6307+
};
6308+
62966309
/**
62976310
* The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime.
62986311
*

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5452,6 +5452,19 @@ interface ImportMeta {
54525452
resolve(specifier: string): string;
54535453
}
54545454

5455+
/**
5456+
* The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation.
5457+
*
5458+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent)
5459+
*/
5460+
interface InstallEvent extends ExtendableEvent {
5461+
}
5462+
5463+
declare var InstallEvent: {
5464+
prototype: InstallEvent;
5465+
new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent;
5466+
};
5467+
54555468
/**
54565469
* The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime.
54575470
*

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6293,6 +6293,19 @@ interface ImportMeta {
62936293
resolve(specifier: string): string;
62946294
}
62956295

6296+
/**
6297+
* The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation.
6298+
*
6299+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent)
6300+
*/
6301+
interface InstallEvent extends ExtendableEvent {
6302+
}
6303+
6304+
declare var InstallEvent: {
6305+
prototype: InstallEvent;
6306+
new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent;
6307+
};
6308+
62966309
/**
62976310
* The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime.
62986311
*

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5452,6 +5452,19 @@ interface ImportMeta {
54525452
resolve(specifier: string): string;
54535453
}
54545454

5455+
/**
5456+
* The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation.
5457+
*
5458+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent)
5459+
*/
5460+
interface InstallEvent extends ExtendableEvent {
5461+
}
5462+
5463+
declare var InstallEvent: {
5464+
prototype: InstallEvent;
5465+
new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent;
5466+
};
5467+
54555468
/**
54565469
* The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime.
54575470
*

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6293,6 +6293,19 @@ interface ImportMeta {
62936293
resolve(specifier: string): string;
62946294
}
62956295

6296+
/**
6297+
* The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation.
6298+
*
6299+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent)
6300+
*/
6301+
interface InstallEvent extends ExtendableEvent {
6302+
}
6303+
6304+
declare var InstallEvent: {
6305+
prototype: InstallEvent;
6306+
new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent;
6307+
};
6308+
62966309
/**
62976310
* The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime.
62986311
*

baselines/webworker.generated.d.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6296,6 +6296,19 @@ interface ImportMeta {
62966296
resolve(specifier: string): string;
62976297
}
62986298

6299+
/**
6300+
* The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation.
6301+
*
6302+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent)
6303+
*/
6304+
interface InstallEvent extends ExtendableEvent {
6305+
}
6306+
6307+
declare var InstallEvent: {
6308+
prototype: InstallEvent;
6309+
new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent;
6310+
};
6311+
62996312
/**
63006313
* The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime.
63016314
*

inputfiles/overridingTypes.jsonc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2649,10 +2649,6 @@
26492649
]
26502650
}
26512651
},
2652-
"InstallEvent": {
2653-
// https://github.com/mdn/browser-compat-data/issues/22591
2654-
"exposed": ""
2655-
},
26562652
"Instance": {
26572653
"constructor": {
26582654
"signature": {

0 commit comments

Comments
 (0)