@types/sharedworker 0.0.223 → 0.0.224

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
@@ -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.223 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.223.
31
+ You can read what changed in version 0.0.224 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.224.
package/index.d.ts CHANGED
@@ -12626,7 +12626,7 @@ declare namespace WebAssembly {
12626
12626
 
12627
12627
  var Module: {
12628
12628
  prototype: Module;
12629
- new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module;
12629
+ new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module;
12630
12630
  /**
12631
12631
  * 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.
12632
12632
  *
@@ -12777,16 +12777,16 @@ declare namespace WebAssembly {
12777
12777
  type ValueType = keyof ValueTypeMap;
12778
12778
  var JSTag: Tag;
12779
12779
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */
12780
- function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
12780
+ function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
12781
12781
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
12782
12782
  function compileStreaming(source: Response | PromiseLike<Response>, options?: WebAssemblyCompileOptions): Promise<Module>;
12783
12783
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */
12784
- function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
12784
+ function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
12785
12785
  function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
12786
12786
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */
12787
12787
  function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
12788
12788
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
12789
- function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean;
12789
+ function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean;
12790
12790
  }
12791
12791
 
12792
12792
  /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */
@@ -13187,7 +13187,7 @@ type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility"
13187
13187
  type ClientTypes = "all" | "sharedworker" | "window" | "worker";
13188
13188
  type ColorGamut = "p3" | "rec2020" | "srgb";
13189
13189
  type ColorSpaceConversion = "default" | "none";
13190
- type CompressionFormat = "deflate" | "deflate-raw" | "gzip";
13190
+ type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip";
13191
13191
  type EndingType = "native" | "transparent";
13192
13192
  type FileSystemHandleKind = "directory" | "file";
13193
13193
  type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
@@ -13256,7 +13256,7 @@ type ReadableStreamType = "bytes";
13256
13256
  type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
13257
13257
  type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
13258
13258
  type RequestCredentials = "include" | "omit" | "same-origin";
13259
- type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
13259
+ type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "json" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
13260
13260
  type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
13261
13261
  type RequestPriority = "auto" | "high" | "low";
13262
13262
  type RequestRedirect = "error" | "follow" | "manual";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedworker",
3
- "version": "0.0.223",
3
+ "version": "0.0.224",
4
4
  "description": "Types for the global scope of Shared Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -12623,7 +12623,7 @@ declare namespace WebAssembly {
12623
12623
 
12624
12624
  var Module: {
12625
12625
  prototype: Module;
12626
- new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module;
12626
+ new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module;
12627
12627
  /**
12628
12628
  * 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.
12629
12629
  *
@@ -12774,16 +12774,16 @@ declare namespace WebAssembly {
12774
12774
  type ValueType = keyof ValueTypeMap;
12775
12775
  var JSTag: Tag;
12776
12776
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */
12777
- function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
12777
+ function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
12778
12778
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
12779
12779
  function compileStreaming(source: Response | PromiseLike<Response>, options?: WebAssemblyCompileOptions): Promise<Module>;
12780
12780
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */
12781
- function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
12781
+ function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
12782
12782
  function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
12783
12783
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */
12784
12784
  function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
12785
12785
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
12786
- function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean;
12786
+ function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean;
12787
12787
  }
12788
12788
 
12789
12789
  /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */
@@ -13184,7 +13184,7 @@ type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility"
13184
13184
  type ClientTypes = "all" | "sharedworker" | "window" | "worker";
13185
13185
  type ColorGamut = "p3" | "rec2020" | "srgb";
13186
13186
  type ColorSpaceConversion = "default" | "none";
13187
- type CompressionFormat = "deflate" | "deflate-raw" | "gzip";
13187
+ type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip";
13188
13188
  type EndingType = "native" | "transparent";
13189
13189
  type FileSystemHandleKind = "directory" | "file";
13190
13190
  type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
@@ -13253,7 +13253,7 @@ type ReadableStreamType = "bytes";
13253
13253
  type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
13254
13254
  type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
13255
13255
  type RequestCredentials = "include" | "omit" | "same-origin";
13256
- type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
13256
+ type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "json" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
13257
13257
  type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
13258
13258
  type RequestPriority = "auto" | "high" | "low";
13259
13259
  type RequestRedirect = "error" | "follow" | "manual";
package/ts5.6/index.d.ts CHANGED
@@ -12623,7 +12623,7 @@ declare namespace WebAssembly {
12623
12623
 
12624
12624
  var Module: {
12625
12625
  prototype: Module;
12626
- new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module;
12626
+ new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module;
12627
12627
  /**
12628
12628
  * 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.
12629
12629
  *
@@ -12774,16 +12774,16 @@ declare namespace WebAssembly {
12774
12774
  type ValueType = keyof ValueTypeMap;
12775
12775
  var JSTag: Tag;
12776
12776
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */
12777
- function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
12777
+ function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
12778
12778
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
12779
12779
  function compileStreaming(source: Response | PromiseLike<Response>, options?: WebAssemblyCompileOptions): Promise<Module>;
12780
12780
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */
12781
- function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
12781
+ function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
12782
12782
  function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
12783
12783
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */
12784
12784
  function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
12785
12785
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
12786
- function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean;
12786
+ function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean;
12787
12787
  }
12788
12788
 
12789
12789
  /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */
@@ -13184,7 +13184,7 @@ type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility"
13184
13184
  type ClientTypes = "all" | "sharedworker" | "window" | "worker";
13185
13185
  type ColorGamut = "p3" | "rec2020" | "srgb";
13186
13186
  type ColorSpaceConversion = "default" | "none";
13187
- type CompressionFormat = "deflate" | "deflate-raw" | "gzip";
13187
+ type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip";
13188
13188
  type EndingType = "native" | "transparent";
13189
13189
  type FileSystemHandleKind = "directory" | "file";
13190
13190
  type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
@@ -13253,7 +13253,7 @@ type ReadableStreamType = "bytes";
13253
13253
  type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
13254
13254
  type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
13255
13255
  type RequestCredentials = "include" | "omit" | "same-origin";
13256
- type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
13256
+ type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "json" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
13257
13257
  type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
13258
13258
  type RequestPriority = "auto" | "high" | "low";
13259
13259
  type RequestRedirect = "error" | "follow" | "manual";
package/ts5.9/index.d.ts CHANGED
@@ -12623,7 +12623,7 @@ declare namespace WebAssembly {
12623
12623
 
12624
12624
  var Module: {
12625
12625
  prototype: Module;
12626
- new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module;
12626
+ new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module;
12627
12627
  /**
12628
12628
  * 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.
12629
12629
  *
@@ -12774,16 +12774,16 @@ declare namespace WebAssembly {
12774
12774
  type ValueType = keyof ValueTypeMap;
12775
12775
  var JSTag: Tag;
12776
12776
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */
12777
- function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
12777
+ function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
12778
12778
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
12779
12779
  function compileStreaming(source: Response | PromiseLike<Response>, options?: WebAssemblyCompileOptions): Promise<Module>;
12780
12780
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */
12781
- function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
12781
+ function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
12782
12782
  function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
12783
12783
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */
12784
12784
  function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
12785
12785
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
12786
- function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean;
12786
+ function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean;
12787
12787
  }
12788
12788
 
12789
12789
  /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */
@@ -13184,7 +13184,7 @@ type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility"
13184
13184
  type ClientTypes = "all" | "sharedworker" | "window" | "worker";
13185
13185
  type ColorGamut = "p3" | "rec2020" | "srgb";
13186
13186
  type ColorSpaceConversion = "default" | "none";
13187
- type CompressionFormat = "deflate" | "deflate-raw" | "gzip";
13187
+ type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip";
13188
13188
  type EndingType = "native" | "transparent";
13189
13189
  type FileSystemHandleKind = "directory" | "file";
13190
13190
  type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
@@ -13253,7 +13253,7 @@ type ReadableStreamType = "bytes";
13253
13253
  type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
13254
13254
  type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
13255
13255
  type RequestCredentials = "include" | "omit" | "same-origin";
13256
- type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
13256
+ type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "json" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
13257
13257
  type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
13258
13258
  type RequestPriority = "auto" | "high" | "low";
13259
13259
  type RequestRedirect = "error" | "follow" | "manual";