@types/serviceworker 0.0.48 → 0.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.d.ts +29 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
28
28
|
|
|
29
29
|
## Deploy Metadata
|
|
30
30
|
|
|
31
|
-
You can read what changed in version 0.0.
|
|
31
|
+
You can read what changed in version 0.0.49 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.49.
|
package/index.d.ts
CHANGED
|
@@ -709,6 +709,7 @@ declare var AbortSignal: {
|
|
|
709
709
|
prototype: AbortSignal;
|
|
710
710
|
new(): AbortSignal;
|
|
711
711
|
// abort(reason?: any): AbortSignal; - To be re-added in the future
|
|
712
|
+
timeout(milliseconds: number): AbortSignal;
|
|
712
713
|
};
|
|
713
714
|
|
|
714
715
|
interface AbstractWorkerEventMap {
|
|
@@ -1237,6 +1238,13 @@ interface EXT_sRGB {
|
|
|
1237
1238
|
interface EXT_shader_texture_lod {
|
|
1238
1239
|
}
|
|
1239
1240
|
|
|
1241
|
+
interface EXT_texture_compression_bptc {
|
|
1242
|
+
readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: GLenum;
|
|
1243
|
+
readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: GLenum;
|
|
1244
|
+
readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: GLenum;
|
|
1245
|
+
readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: GLenum;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1240
1248
|
interface EXT_texture_compression_rgtc {
|
|
1241
1249
|
readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;
|
|
1242
1250
|
readonly COMPRESSED_RED_RGTC1_EXT: GLenum;
|
|
@@ -2460,6 +2468,7 @@ interface PermissionStatusEventMap {
|
|
|
2460
2468
|
}
|
|
2461
2469
|
|
|
2462
2470
|
interface PermissionStatus extends EventTarget {
|
|
2471
|
+
readonly name: string;
|
|
2463
2472
|
onchange: ((this: PermissionStatus, ev: Event) => any) | null;
|
|
2464
2473
|
readonly state: PermissionState;
|
|
2465
2474
|
addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2571,6 +2580,7 @@ declare var PushSubscription: {
|
|
|
2571
2580
|
/** Available only in secure contexts. */
|
|
2572
2581
|
interface PushSubscriptionOptions {
|
|
2573
2582
|
readonly applicationServerKey: ArrayBuffer | null;
|
|
2583
|
+
readonly userVisibleOnly: boolean;
|
|
2574
2584
|
}
|
|
2575
2585
|
|
|
2576
2586
|
declare var PushSubscriptionOptions: {
|
|
@@ -2795,6 +2805,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|
|
2795
2805
|
"notificationclick": NotificationEvent;
|
|
2796
2806
|
"notificationclose": NotificationEvent;
|
|
2797
2807
|
"push": PushEvent;
|
|
2808
|
+
"pushsubscriptionchange": Event;
|
|
2798
2809
|
}
|
|
2799
2810
|
|
|
2800
2811
|
/** This ServiceWorker API interface represents the global execution context of a service worker. */
|
|
@@ -2808,6 +2819,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
2808
2819
|
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
|
|
2809
2820
|
onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
|
|
2810
2821
|
onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
|
|
2822
|
+
onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: Event) => any) | null;
|
|
2811
2823
|
readonly registration: ServiceWorkerRegistration;
|
|
2812
2824
|
readonly serviceWorker: ServiceWorker;
|
|
2813
2825
|
skipWaiting(): Promise<void>;
|
|
@@ -4587,35 +4599,39 @@ interface WebGLRenderingContextBase {
|
|
|
4587
4599
|
getBufferParameter(target: GLenum, pname: GLenum): any;
|
|
4588
4600
|
getContextAttributes(): WebGLContextAttributes | null;
|
|
4589
4601
|
getError(): GLenum;
|
|
4602
|
+
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
|
|
4590
4603
|
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
|
|
4591
4604
|
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
|
|
4592
4605
|
getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
|
|
4593
4606
|
getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
|
|
4594
|
-
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
|
|
4595
4607
|
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
|
|
4596
|
-
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
|
|
4597
4608
|
getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
|
|
4609
|
+
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
|
|
4610
|
+
getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;
|
|
4611
|
+
getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;
|
|
4612
|
+
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
|
|
4598
4613
|
getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
|
|
4614
|
+
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
|
|
4615
|
+
getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;
|
|
4616
|
+
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
|
|
4617
|
+
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
|
|
4618
|
+
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
|
|
4619
|
+
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
|
|
4620
|
+
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
|
|
4599
4621
|
getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
|
|
4600
4622
|
getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
|
|
4601
4623
|
getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
|
|
4602
4624
|
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
|
|
4603
4625
|
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
|
|
4604
4626
|
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
|
|
4627
|
+
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
|
|
4605
4628
|
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
|
|
4629
|
+
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
|
|
4606
4630
|
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
|
|
4631
|
+
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
|
|
4607
4632
|
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
|
|
4608
4633
|
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
|
|
4609
|
-
getExtension(extensionName: "
|
|
4610
|
-
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
|
|
4611
|
-
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
|
|
4612
|
-
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
|
|
4613
|
-
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
|
|
4614
|
-
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
|
|
4615
|
-
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
|
|
4616
|
-
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
|
|
4617
|
-
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
|
|
4618
|
-
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
|
|
4634
|
+
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
|
|
4619
4635
|
getExtension(name: string): any;
|
|
4620
4636
|
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
|
|
4621
4637
|
getParameter(pname: GLenum): any;
|
|
@@ -5493,6 +5509,7 @@ declare var onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent)
|
|
|
5493
5509
|
declare var onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
|
|
5494
5510
|
declare var onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
|
|
5495
5511
|
declare var onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
|
|
5512
|
+
declare var onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: Event) => any) | null;
|
|
5496
5513
|
declare var registration: ServiceWorkerRegistration;
|
|
5497
5514
|
declare var serviceWorker: ServiceWorker;
|
|
5498
5515
|
declare function skipWaiting(): Promise<void>;
|