@types/serviceworker 0.0.46 → 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 +65 -14
- 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: {
|
|
@@ -2578,6 +2588,19 @@ declare var PushSubscriptionOptions: {
|
|
|
2578
2588
|
new(): PushSubscriptionOptions;
|
|
2579
2589
|
};
|
|
2580
2590
|
|
|
2591
|
+
interface ReadableByteStreamController {
|
|
2592
|
+
readonly byobRequest: ReadableStreamBYOBRequest | null;
|
|
2593
|
+
readonly desiredSize: number | null;
|
|
2594
|
+
close(): void;
|
|
2595
|
+
enqueue(chunk: ArrayBufferView): void;
|
|
2596
|
+
error(e?: any): void;
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
declare var ReadableByteStreamController: {
|
|
2600
|
+
prototype: ReadableByteStreamController;
|
|
2601
|
+
new(): ReadableByteStreamController;
|
|
2602
|
+
};
|
|
2603
|
+
|
|
2581
2604
|
/** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */
|
|
2582
2605
|
interface ReadableStream<R = any> {
|
|
2583
2606
|
readonly locked: boolean;
|
|
@@ -2593,6 +2616,27 @@ declare var ReadableStream: {
|
|
|
2593
2616
|
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
2594
2617
|
};
|
|
2595
2618
|
|
|
2619
|
+
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
2620
|
+
read(view: ArrayBufferView): Promise<ReadableStreamReadResult<ArrayBufferView>>;
|
|
2621
|
+
releaseLock(): void;
|
|
2622
|
+
}
|
|
2623
|
+
|
|
2624
|
+
declare var ReadableStreamBYOBReader: {
|
|
2625
|
+
prototype: ReadableStreamBYOBReader;
|
|
2626
|
+
new(stream: ReadableStream): ReadableStreamBYOBReader;
|
|
2627
|
+
};
|
|
2628
|
+
|
|
2629
|
+
interface ReadableStreamBYOBRequest {
|
|
2630
|
+
readonly view: ArrayBufferView | null;
|
|
2631
|
+
respond(bytesWritten: number): void;
|
|
2632
|
+
respondWithNewView(view: ArrayBufferView): void;
|
|
2633
|
+
}
|
|
2634
|
+
|
|
2635
|
+
declare var ReadableStreamBYOBRequest: {
|
|
2636
|
+
prototype: ReadableStreamBYOBRequest;
|
|
2637
|
+
new(): ReadableStreamBYOBRequest;
|
|
2638
|
+
};
|
|
2639
|
+
|
|
2596
2640
|
interface ReadableStreamDefaultController<R = any> {
|
|
2597
2641
|
readonly desiredSize: number | null;
|
|
2598
2642
|
close(): void;
|
|
@@ -2761,6 +2805,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|
|
2761
2805
|
"notificationclick": NotificationEvent;
|
|
2762
2806
|
"notificationclose": NotificationEvent;
|
|
2763
2807
|
"push": PushEvent;
|
|
2808
|
+
"pushsubscriptionchange": Event;
|
|
2764
2809
|
}
|
|
2765
2810
|
|
|
2766
2811
|
/** This ServiceWorker API interface represents the global execution context of a service worker. */
|
|
@@ -2774,6 +2819,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
2774
2819
|
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
|
|
2775
2820
|
onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
|
|
2776
2821
|
onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
|
|
2822
|
+
onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: Event) => any) | null;
|
|
2777
2823
|
readonly registration: ServiceWorkerRegistration;
|
|
2778
2824
|
readonly serviceWorker: ServiceWorker;
|
|
2779
2825
|
skipWaiting(): Promise<void>;
|
|
@@ -2837,11 +2883,11 @@ declare var StorageManager: {
|
|
|
2837
2883
|
* Available only in secure contexts.
|
|
2838
2884
|
*/
|
|
2839
2885
|
interface SubtleCrypto {
|
|
2840
|
-
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<
|
|
2886
|
+
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
2841
2887
|
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
|
|
2842
2888
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
2843
2889
|
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
|
|
2844
|
-
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<
|
|
2890
|
+
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
2845
2891
|
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
|
|
2846
2892
|
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
|
|
2847
2893
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
@@ -4553,35 +4599,39 @@ interface WebGLRenderingContextBase {
|
|
|
4553
4599
|
getBufferParameter(target: GLenum, pname: GLenum): any;
|
|
4554
4600
|
getContextAttributes(): WebGLContextAttributes | null;
|
|
4555
4601
|
getError(): GLenum;
|
|
4602
|
+
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
|
|
4556
4603
|
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
|
|
4557
4604
|
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
|
|
4558
4605
|
getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
|
|
4559
4606
|
getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
|
|
4560
|
-
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
|
|
4561
4607
|
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
|
|
4562
|
-
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
|
|
4563
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;
|
|
4564
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;
|
|
4565
4621
|
getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
|
|
4566
4622
|
getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
|
|
4567
4623
|
getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
|
|
4568
4624
|
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
|
|
4569
4625
|
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
|
|
4570
4626
|
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
|
|
4627
|
+
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
|
|
4571
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;
|
|
4572
4630
|
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
|
|
4631
|
+
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
|
|
4573
4632
|
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
|
|
4574
4633
|
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
|
|
4575
|
-
getExtension(extensionName: "
|
|
4576
|
-
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
|
|
4577
|
-
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
|
|
4578
|
-
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
|
|
4579
|
-
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
|
|
4580
|
-
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
|
|
4581
|
-
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
|
|
4582
|
-
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
|
|
4583
|
-
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
|
|
4584
|
-
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
|
|
4634
|
+
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
|
|
4585
4635
|
getExtension(name: string): any;
|
|
4586
4636
|
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
|
|
4587
4637
|
getParameter(pname: GLenum): any;
|
|
@@ -5459,6 +5509,7 @@ declare var onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent)
|
|
|
5459
5509
|
declare var onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
|
|
5460
5510
|
declare var onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
|
|
5461
5511
|
declare var onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
|
|
5512
|
+
declare var onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: Event) => any) | null;
|
|
5462
5513
|
declare var registration: ServiceWorkerRegistration;
|
|
5463
5514
|
declare var serviceWorker: ServiceWorker;
|
|
5464
5515
|
declare function skipWaiting(): Promise<void>;
|