@types/webworker 0.0.73 → 0.0.74

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 CHANGED
@@ -45,4 +45,4 @@ This project does not respect semantic versioning as almost every change could p
45
45
 
46
46
  ## Deploy Metadata
47
47
 
48
- You can read what changed in version 0.0.73 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.73.
48
+ You can read what changed in version 0.0.74 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.74.
package/index.d.ts CHANGED
@@ -14575,7 +14575,7 @@ declare namespace WebAssembly {
14575
14575
 
14576
14576
  var Module: {
14577
14577
  prototype: Module;
14578
- new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module;
14578
+ new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module;
14579
14579
  /**
14580
14580
  * The WebAssembly.**`Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name.
14581
14581
  *
@@ -14726,16 +14726,16 @@ declare namespace WebAssembly {
14726
14726
  type ValueType = keyof ValueTypeMap;
14727
14727
  var JSTag: Tag;
14728
14728
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */
14729
- function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
14729
+ function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
14730
14730
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
14731
14731
  function compileStreaming(source: Response | PromiseLike<Response>, options?: WebAssemblyCompileOptions): Promise<Module>;
14732
14732
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */
14733
- function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
14733
+ function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
14734
14734
  function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
14735
14735
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */
14736
14736
  function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
14737
14737
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
14738
- function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean;
14738
+ function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean;
14739
14739
  }
14740
14740
 
14741
14741
  /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */
@@ -15184,7 +15184,7 @@ type ClientTypes = "all" | "sharedworker" | "window" | "worker";
15184
15184
  type CodecState = "closed" | "configured" | "unconfigured";
15185
15185
  type ColorGamut = "p3" | "rec2020" | "srgb";
15186
15186
  type ColorSpaceConversion = "default" | "none";
15187
- type CompressionFormat = "deflate" | "deflate-raw" | "gzip";
15187
+ type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip";
15188
15188
  type CookieSameSite = "lax" | "none" | "strict";
15189
15189
  type DocumentVisibilityState = "hidden" | "visible";
15190
15190
  type EncodedAudioChunkType = "delta" | "key";
@@ -15262,7 +15262,7 @@ type ReadableStreamType = "bytes";
15262
15262
  type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
15263
15263
  type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
15264
15264
  type RequestCredentials = "include" | "omit" | "same-origin";
15265
- type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
15265
+ type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "json" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
15266
15266
  type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
15267
15267
  type RequestPriority = "auto" | "high" | "low";
15268
15268
  type RequestRedirect = "error" | "follow" | "manual";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/webworker",
3
- "version": "0.0.73",
3
+ "version": "0.0.74",
4
4
  "description": "Types for the global scope of Web Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -14572,7 +14572,7 @@ declare namespace WebAssembly {
14572
14572
 
14573
14573
  var Module: {
14574
14574
  prototype: Module;
14575
- new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module;
14575
+ new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module;
14576
14576
  /**
14577
14577
  * The WebAssembly.**`Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name.
14578
14578
  *
@@ -14723,16 +14723,16 @@ declare namespace WebAssembly {
14723
14723
  type ValueType = keyof ValueTypeMap;
14724
14724
  var JSTag: Tag;
14725
14725
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */
14726
- function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
14726
+ function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
14727
14727
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
14728
14728
  function compileStreaming(source: Response | PromiseLike<Response>, options?: WebAssemblyCompileOptions): Promise<Module>;
14729
14729
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */
14730
- function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
14730
+ function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
14731
14731
  function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
14732
14732
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */
14733
14733
  function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
14734
14734
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
14735
- function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean;
14735
+ function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean;
14736
14736
  }
14737
14737
 
14738
14738
  /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */
@@ -15181,7 +15181,7 @@ type ClientTypes = "all" | "sharedworker" | "window" | "worker";
15181
15181
  type CodecState = "closed" | "configured" | "unconfigured";
15182
15182
  type ColorGamut = "p3" | "rec2020" | "srgb";
15183
15183
  type ColorSpaceConversion = "default" | "none";
15184
- type CompressionFormat = "deflate" | "deflate-raw" | "gzip";
15184
+ type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip";
15185
15185
  type CookieSameSite = "lax" | "none" | "strict";
15186
15186
  type DocumentVisibilityState = "hidden" | "visible";
15187
15187
  type EncodedAudioChunkType = "delta" | "key";
@@ -15259,7 +15259,7 @@ type ReadableStreamType = "bytes";
15259
15259
  type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
15260
15260
  type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
15261
15261
  type RequestCredentials = "include" | "omit" | "same-origin";
15262
- type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
15262
+ type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "json" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
15263
15263
  type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
15264
15264
  type RequestPriority = "auto" | "high" | "low";
15265
15265
  type RequestRedirect = "error" | "follow" | "manual";
package/ts5.6/index.d.ts CHANGED
@@ -14572,7 +14572,7 @@ declare namespace WebAssembly {
14572
14572
 
14573
14573
  var Module: {
14574
14574
  prototype: Module;
14575
- new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module;
14575
+ new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module;
14576
14576
  /**
14577
14577
  * The WebAssembly.**`Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name.
14578
14578
  *
@@ -14723,16 +14723,16 @@ declare namespace WebAssembly {
14723
14723
  type ValueType = keyof ValueTypeMap;
14724
14724
  var JSTag: Tag;
14725
14725
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */
14726
- function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
14726
+ function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
14727
14727
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
14728
14728
  function compileStreaming(source: Response | PromiseLike<Response>, options?: WebAssemblyCompileOptions): Promise<Module>;
14729
14729
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */
14730
- function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
14730
+ function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
14731
14731
  function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
14732
14732
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */
14733
14733
  function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
14734
14734
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
14735
- function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean;
14735
+ function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean;
14736
14736
  }
14737
14737
 
14738
14738
  /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */
@@ -15181,7 +15181,7 @@ type ClientTypes = "all" | "sharedworker" | "window" | "worker";
15181
15181
  type CodecState = "closed" | "configured" | "unconfigured";
15182
15182
  type ColorGamut = "p3" | "rec2020" | "srgb";
15183
15183
  type ColorSpaceConversion = "default" | "none";
15184
- type CompressionFormat = "deflate" | "deflate-raw" | "gzip";
15184
+ type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip";
15185
15185
  type CookieSameSite = "lax" | "none" | "strict";
15186
15186
  type DocumentVisibilityState = "hidden" | "visible";
15187
15187
  type EncodedAudioChunkType = "delta" | "key";
@@ -15259,7 +15259,7 @@ type ReadableStreamType = "bytes";
15259
15259
  type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
15260
15260
  type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
15261
15261
  type RequestCredentials = "include" | "omit" | "same-origin";
15262
- type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
15262
+ type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "json" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
15263
15263
  type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
15264
15264
  type RequestPriority = "auto" | "high" | "low";
15265
15265
  type RequestRedirect = "error" | "follow" | "manual";
package/ts5.9/index.d.ts CHANGED
@@ -14572,7 +14572,7 @@ declare namespace WebAssembly {
14572
14572
 
14573
14573
  var Module: {
14574
14574
  prototype: Module;
14575
- new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module;
14575
+ new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module;
14576
14576
  /**
14577
14577
  * The WebAssembly.**`Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name.
14578
14578
  *
@@ -14723,16 +14723,16 @@ declare namespace WebAssembly {
14723
14723
  type ValueType = keyof ValueTypeMap;
14724
14724
  var JSTag: Tag;
14725
14725
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */
14726
- function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
14726
+ function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
14727
14727
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
14728
14728
  function compileStreaming(source: Response | PromiseLike<Response>, options?: WebAssemblyCompileOptions): Promise<Module>;
14729
14729
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */
14730
- function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
14730
+ function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
14731
14731
  function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
14732
14732
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */
14733
14733
  function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
14734
14734
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
14735
- function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean;
14735
+ function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean;
14736
14736
  }
14737
14737
 
14738
14738
  /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */
@@ -15181,7 +15181,7 @@ type ClientTypes = "all" | "sharedworker" | "window" | "worker";
15181
15181
  type CodecState = "closed" | "configured" | "unconfigured";
15182
15182
  type ColorGamut = "p3" | "rec2020" | "srgb";
15183
15183
  type ColorSpaceConversion = "default" | "none";
15184
- type CompressionFormat = "deflate" | "deflate-raw" | "gzip";
15184
+ type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip";
15185
15185
  type CookieSameSite = "lax" | "none" | "strict";
15186
15186
  type DocumentVisibilityState = "hidden" | "visible";
15187
15187
  type EncodedAudioChunkType = "delta" | "key";
@@ -15259,7 +15259,7 @@ type ReadableStreamType = "bytes";
15259
15259
  type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
15260
15260
  type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
15261
15261
  type RequestCredentials = "include" | "omit" | "same-origin";
15262
- type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
15262
+ type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "json" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
15263
15263
  type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
15264
15264
  type RequestPriority = "auto" | "high" | "low";
15265
15265
  type RequestRedirect = "error" | "follow" | "manual";