@types/sharedworker 0.0.75 → 0.0.78

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.d.ts +62 -14
  3. 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.75 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.75.
31
+ You can read what changed in version 0.0.78 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.78.
package/index.d.ts CHANGED
@@ -681,6 +681,7 @@ declare var AbortSignal: {
681
681
  prototype: AbortSignal;
682
682
  new(): AbortSignal;
683
683
  // abort(reason?: any): AbortSignal; - To be re-added in the future
684
+ timeout(milliseconds: number): AbortSignal;
684
685
  };
685
686
 
686
687
  interface AbstractWorkerEventMap {
@@ -1181,6 +1182,13 @@ interface EXT_sRGB {
1181
1182
  interface EXT_shader_texture_lod {
1182
1183
  }
1183
1184
 
1185
+ interface EXT_texture_compression_bptc {
1186
+ readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: GLenum;
1187
+ readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: GLenum;
1188
+ readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: GLenum;
1189
+ readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: GLenum;
1190
+ }
1191
+
1184
1192
  interface EXT_texture_compression_rgtc {
1185
1193
  readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;
1186
1194
  readonly COMPRESSED_RED_RGTC1_EXT: GLenum;
@@ -2368,6 +2376,7 @@ interface PermissionStatusEventMap {
2368
2376
  }
2369
2377
 
2370
2378
  interface PermissionStatus extends EventTarget {
2379
+ readonly name: string;
2371
2380
  onchange: ((this: PermissionStatus, ev: Event) => any) | null;
2372
2381
  readonly state: PermissionState;
2373
2382
  addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -2450,6 +2459,7 @@ declare var PushSubscription: {
2450
2459
  /** Available only in secure contexts. */
2451
2460
  interface PushSubscriptionOptions {
2452
2461
  readonly applicationServerKey: ArrayBuffer | null;
2462
+ readonly userVisibleOnly: boolean;
2453
2463
  }
2454
2464
 
2455
2465
  declare var PushSubscriptionOptions: {
@@ -2457,6 +2467,19 @@ declare var PushSubscriptionOptions: {
2457
2467
  new(): PushSubscriptionOptions;
2458
2468
  };
2459
2469
 
2470
+ interface ReadableByteStreamController {
2471
+ readonly byobRequest: ReadableStreamBYOBRequest | null;
2472
+ readonly desiredSize: number | null;
2473
+ close(): void;
2474
+ enqueue(chunk: ArrayBufferView): void;
2475
+ error(e?: any): void;
2476
+ }
2477
+
2478
+ declare var ReadableByteStreamController: {
2479
+ prototype: ReadableByteStreamController;
2480
+ new(): ReadableByteStreamController;
2481
+ };
2482
+
2460
2483
  /** 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. */
2461
2484
  interface ReadableStream<R = any> {
2462
2485
  readonly locked: boolean;
@@ -2472,6 +2495,27 @@ declare var ReadableStream: {
2472
2495
  new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
2473
2496
  };
2474
2497
 
2498
+ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
2499
+ read(view: ArrayBufferView): Promise<ReadableStreamReadResult<ArrayBufferView>>;
2500
+ releaseLock(): void;
2501
+ }
2502
+
2503
+ declare var ReadableStreamBYOBReader: {
2504
+ prototype: ReadableStreamBYOBReader;
2505
+ new(stream: ReadableStream): ReadableStreamBYOBReader;
2506
+ };
2507
+
2508
+ interface ReadableStreamBYOBRequest {
2509
+ readonly view: ArrayBufferView | null;
2510
+ respond(bytesWritten: number): void;
2511
+ respondWithNewView(view: ArrayBufferView): void;
2512
+ }
2513
+
2514
+ declare var ReadableStreamBYOBRequest: {
2515
+ prototype: ReadableStreamBYOBRequest;
2516
+ new(): ReadableStreamBYOBRequest;
2517
+ };
2518
+
2475
2519
  interface ReadableStreamDefaultController<R = any> {
2476
2520
  readonly desiredSize: number | null;
2477
2521
  close(): void;
@@ -2701,11 +2745,11 @@ declare var StorageManager: {
2701
2745
  * Available only in secure contexts.
2702
2746
  */
2703
2747
  interface SubtleCrypto {
2704
- decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
2748
+ decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
2705
2749
  deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
2706
2750
  deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
2707
2751
  digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
2708
- encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
2752
+ encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
2709
2753
  exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
2710
2754
  exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
2711
2755
  generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
@@ -4419,35 +4463,39 @@ interface WebGLRenderingContextBase {
4419
4463
  getBufferParameter(target: GLenum, pname: GLenum): any;
4420
4464
  getContextAttributes(): WebGLContextAttributes | null;
4421
4465
  getError(): GLenum;
4466
+ getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
4422
4467
  getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
4423
4468
  getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
4424
4469
  getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
4425
4470
  getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
4426
- getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
4427
4471
  getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
4428
- getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
4429
4472
  getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
4473
+ getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
4474
+ getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;
4475
+ getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;
4476
+ getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
4430
4477
  getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
4478
+ getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
4479
+ getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;
4480
+ getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
4481
+ getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
4482
+ getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
4483
+ getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
4484
+ getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
4431
4485
  getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
4432
4486
  getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
4433
4487
  getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
4434
4488
  getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
4435
4489
  getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
4436
4490
  getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
4491
+ getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
4437
4492
  getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
4493
+ getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
4438
4494
  getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
4495
+ getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
4439
4496
  getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
4440
4497
  getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
4441
- getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
4442
- getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
4443
- getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
4444
- getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
4445
- getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
4446
- getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
4447
- getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
4448
- getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
4449
- getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
4450
- getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
4498
+ getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
4451
4499
  getExtension(name: string): any;
4452
4500
  getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
4453
4501
  getParameter(pname: GLenum): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedworker",
3
- "version": "0.0.75",
3
+ "version": "0.0.78",
4
4
  "description": "Types for the global scope of Shared Workers",
5
5
  "license": "MIT",
6
6
  "contributors": [],