@types/sharedworker 0.0.76 → 0.0.79
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 +66 -21
- 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.79 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.79.
|
package/index.d.ts
CHANGED
|
@@ -432,9 +432,18 @@ interface QueuingStrategyInit {
|
|
|
432
432
|
highWaterMark: number;
|
|
433
433
|
}
|
|
434
434
|
|
|
435
|
-
interface
|
|
435
|
+
interface ReadableStreamGetReaderOptions {
|
|
436
|
+
/**
|
|
437
|
+
* Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
|
|
438
|
+
*
|
|
439
|
+
* This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.
|
|
440
|
+
*/
|
|
441
|
+
mode?: ReadableStreamReaderMode;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
interface ReadableStreamReadDoneResult<T> {
|
|
436
445
|
done: true;
|
|
437
|
-
value?:
|
|
446
|
+
value?: T;
|
|
438
447
|
}
|
|
439
448
|
|
|
440
449
|
interface ReadableStreamReadValueResult<T> {
|
|
@@ -590,6 +599,21 @@ interface Transformer<I = any, O = any> {
|
|
|
590
599
|
writableType?: undefined;
|
|
591
600
|
}
|
|
592
601
|
|
|
602
|
+
interface UnderlyingByteSource {
|
|
603
|
+
autoAllocateChunkSize?: number;
|
|
604
|
+
cancel?: UnderlyingSourceCancelCallback;
|
|
605
|
+
pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;
|
|
606
|
+
start?: (controller: ReadableByteStreamController) => any;
|
|
607
|
+
type: "bytes";
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
interface UnderlyingDefaultSource<R = any> {
|
|
611
|
+
cancel?: UnderlyingSourceCancelCallback;
|
|
612
|
+
pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;
|
|
613
|
+
start?: (controller: ReadableStreamDefaultController<R>) => any;
|
|
614
|
+
type?: undefined;
|
|
615
|
+
}
|
|
616
|
+
|
|
593
617
|
interface UnderlyingSink<W = any> {
|
|
594
618
|
abort?: UnderlyingSinkAbortCallback;
|
|
595
619
|
close?: UnderlyingSinkCloseCallback;
|
|
@@ -599,10 +623,11 @@ interface UnderlyingSink<W = any> {
|
|
|
599
623
|
}
|
|
600
624
|
|
|
601
625
|
interface UnderlyingSource<R = any> {
|
|
626
|
+
autoAllocateChunkSize?: number;
|
|
602
627
|
cancel?: UnderlyingSourceCancelCallback;
|
|
603
628
|
pull?: UnderlyingSourcePullCallback<R>;
|
|
604
629
|
start?: UnderlyingSourceStartCallback<R>;
|
|
605
|
-
type?:
|
|
630
|
+
type?: ReadableStreamType;
|
|
606
631
|
}
|
|
607
632
|
|
|
608
633
|
interface VideoConfiguration {
|
|
@@ -681,6 +706,7 @@ declare var AbortSignal: {
|
|
|
681
706
|
prototype: AbortSignal;
|
|
682
707
|
new(): AbortSignal;
|
|
683
708
|
// abort(reason?: any): AbortSignal; - To be re-added in the future
|
|
709
|
+
timeout(milliseconds: number): AbortSignal;
|
|
684
710
|
};
|
|
685
711
|
|
|
686
712
|
interface AbstractWorkerEventMap {
|
|
@@ -1181,6 +1207,13 @@ interface EXT_sRGB {
|
|
|
1181
1207
|
interface EXT_shader_texture_lod {
|
|
1182
1208
|
}
|
|
1183
1209
|
|
|
1210
|
+
interface EXT_texture_compression_bptc {
|
|
1211
|
+
readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: GLenum;
|
|
1212
|
+
readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: GLenum;
|
|
1213
|
+
readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: GLenum;
|
|
1214
|
+
readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: GLenum;
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1184
1217
|
interface EXT_texture_compression_rgtc {
|
|
1185
1218
|
readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;
|
|
1186
1219
|
readonly COMPRESSED_RED_RGTC1_EXT: GLenum;
|
|
@@ -2368,6 +2401,7 @@ interface PermissionStatusEventMap {
|
|
|
2368
2401
|
}
|
|
2369
2402
|
|
|
2370
2403
|
interface PermissionStatus extends EventTarget {
|
|
2404
|
+
readonly name: string;
|
|
2371
2405
|
onchange: ((this: PermissionStatus, ev: Event) => any) | null;
|
|
2372
2406
|
readonly state: PermissionState;
|
|
2373
2407
|
addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2450,6 +2484,7 @@ declare var PushSubscription: {
|
|
|
2450
2484
|
/** Available only in secure contexts. */
|
|
2451
2485
|
interface PushSubscriptionOptions {
|
|
2452
2486
|
readonly applicationServerKey: ArrayBuffer | null;
|
|
2487
|
+
readonly userVisibleOnly: boolean;
|
|
2453
2488
|
}
|
|
2454
2489
|
|
|
2455
2490
|
declare var PushSubscriptionOptions: {
|
|
@@ -2474,7 +2509,9 @@ declare var ReadableByteStreamController: {
|
|
|
2474
2509
|
interface ReadableStream<R = any> {
|
|
2475
2510
|
readonly locked: boolean;
|
|
2476
2511
|
cancel(reason?: any): Promise<void>;
|
|
2512
|
+
getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
|
|
2477
2513
|
getReader(): ReadableStreamDefaultReader<R>;
|
|
2514
|
+
getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
|
|
2478
2515
|
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
|
|
2479
2516
|
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
|
|
2480
2517
|
tee(): [ReadableStream<R>, ReadableStream<R>];
|
|
@@ -2482,11 +2519,13 @@ interface ReadableStream<R = any> {
|
|
|
2482
2519
|
|
|
2483
2520
|
declare var ReadableStream: {
|
|
2484
2521
|
prototype: ReadableStream;
|
|
2522
|
+
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;
|
|
2523
|
+
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
2485
2524
|
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
2486
2525
|
};
|
|
2487
2526
|
|
|
2488
2527
|
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
2489
|
-
read(view:
|
|
2528
|
+
read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
|
|
2490
2529
|
releaseLock(): void;
|
|
2491
2530
|
}
|
|
2492
2531
|
|
|
@@ -2735,11 +2774,11 @@ declare var StorageManager: {
|
|
|
2735
2774
|
* Available only in secure contexts.
|
|
2736
2775
|
*/
|
|
2737
2776
|
interface SubtleCrypto {
|
|
2738
|
-
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<
|
|
2777
|
+
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
2739
2778
|
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
|
|
2740
2779
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
2741
2780
|
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
|
|
2742
|
-
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<
|
|
2781
|
+
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
2743
2782
|
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
|
|
2744
2783
|
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
|
|
2745
2784
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
@@ -4453,35 +4492,39 @@ interface WebGLRenderingContextBase {
|
|
|
4453
4492
|
getBufferParameter(target: GLenum, pname: GLenum): any;
|
|
4454
4493
|
getContextAttributes(): WebGLContextAttributes | null;
|
|
4455
4494
|
getError(): GLenum;
|
|
4495
|
+
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
|
|
4456
4496
|
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
|
|
4457
4497
|
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
|
|
4458
4498
|
getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
|
|
4459
4499
|
getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
|
|
4460
|
-
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
|
|
4461
4500
|
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
|
|
4462
|
-
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
|
|
4463
4501
|
getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
|
|
4502
|
+
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
|
|
4503
|
+
getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;
|
|
4504
|
+
getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;
|
|
4505
|
+
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
|
|
4464
4506
|
getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
|
|
4507
|
+
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
|
|
4508
|
+
getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;
|
|
4509
|
+
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
|
|
4510
|
+
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
|
|
4511
|
+
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
|
|
4512
|
+
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
|
|
4513
|
+
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
|
|
4465
4514
|
getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
|
|
4466
4515
|
getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
|
|
4467
4516
|
getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
|
|
4468
4517
|
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
|
|
4469
4518
|
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
|
|
4470
4519
|
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
|
|
4520
|
+
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
|
|
4471
4521
|
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
|
|
4522
|
+
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
|
|
4472
4523
|
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
|
|
4524
|
+
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
|
|
4473
4525
|
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
|
|
4474
4526
|
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
|
|
4475
|
-
getExtension(extensionName: "
|
|
4476
|
-
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
|
|
4477
|
-
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
|
|
4478
|
-
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
|
|
4479
|
-
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
|
|
4480
|
-
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
|
|
4481
|
-
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
|
|
4482
|
-
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
|
|
4483
|
-
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
|
|
4484
|
-
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
|
|
4527
|
+
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
|
|
4485
4528
|
getExtension(name: string): any;
|
|
4486
4529
|
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
|
|
4487
4530
|
getParameter(pname: GLenum): any;
|
|
@@ -5586,9 +5629,9 @@ type MessageEventSource = MessagePort | ServiceWorker;
|
|
|
5586
5629
|
type NamedCurve = string;
|
|
5587
5630
|
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
5588
5631
|
type PerformanceEntryList = PerformanceEntry[];
|
|
5589
|
-
type ReadableStreamController<T> = ReadableStreamDefaultController<T
|
|
5590
|
-
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult
|
|
5591
|
-
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T
|
|
5632
|
+
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
|
|
5633
|
+
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
|
|
5634
|
+
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
|
|
5592
5635
|
type RequestInfo = Request | string;
|
|
5593
5636
|
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
5594
5637
|
type TimerHandler = string | Function;
|
|
@@ -5623,6 +5666,8 @@ type PermissionState = "denied" | "granted" | "prompt";
|
|
|
5623
5666
|
type PredefinedColorSpace = "display-p3" | "srgb";
|
|
5624
5667
|
type PremultiplyAlpha = "default" | "none" | "premultiply";
|
|
5625
5668
|
type PushEncryptionKeyName = "auth" | "p256dh";
|
|
5669
|
+
type ReadableStreamReaderMode = "byob";
|
|
5670
|
+
type ReadableStreamType = "bytes";
|
|
5626
5671
|
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
|
|
5627
5672
|
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
|
|
5628
5673
|
type RequestCredentials = "include" | "omit" | "same-origin";
|