@types/sharedworker 0.0.107 → 0.0.109
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 +15 -9
- 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.109 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.109.
|
package/index.d.ts
CHANGED
|
@@ -504,6 +504,7 @@ interface RequestInit {
|
|
|
504
504
|
method?: string;
|
|
505
505
|
/** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
|
|
506
506
|
mode?: RequestMode;
|
|
507
|
+
priority?: RequestPriority;
|
|
507
508
|
/** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */
|
|
508
509
|
redirect?: RequestRedirect;
|
|
509
510
|
/** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
|
|
@@ -2429,7 +2430,11 @@ interface FileReader extends EventTarget {
|
|
|
2429
2430
|
abort(): void;
|
|
2430
2431
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) */
|
|
2431
2432
|
readAsArrayBuffer(blob: Blob): void;
|
|
2432
|
-
/**
|
|
2433
|
+
/**
|
|
2434
|
+
* @deprecated
|
|
2435
|
+
*
|
|
2436
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString)
|
|
2437
|
+
*/
|
|
2433
2438
|
readAsBinaryString(blob: Blob): void;
|
|
2434
2439
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) */
|
|
2435
2440
|
readAsDataURL(blob: Blob): void;
|
|
@@ -8267,11 +8272,11 @@ declare namespace WebAssembly {
|
|
|
8267
8272
|
var Module: {
|
|
8268
8273
|
prototype: Module;
|
|
8269
8274
|
new(bytes: BufferSource): Module;
|
|
8270
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/
|
|
8275
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/customSections_static) */
|
|
8271
8276
|
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
|
|
8272
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/
|
|
8277
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/exports_static) */
|
|
8273
8278
|
exports(moduleObject: Module): ModuleExportDescriptor[];
|
|
8274
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/
|
|
8279
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/imports_static) */
|
|
8275
8280
|
imports(moduleObject: Module): ModuleImportDescriptor[];
|
|
8276
8281
|
};
|
|
8277
8282
|
|
|
@@ -8352,16 +8357,16 @@ declare namespace WebAssembly {
|
|
|
8352
8357
|
type Imports = Record<string, ModuleImports>;
|
|
8353
8358
|
type ModuleImports = Record<string, ImportValue>;
|
|
8354
8359
|
type ValueType = keyof ValueTypeMap;
|
|
8355
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/
|
|
8360
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compile_static) */
|
|
8356
8361
|
function compile(bytes: BufferSource): Promise<Module>;
|
|
8357
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/
|
|
8362
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compileStreaming_static) */
|
|
8358
8363
|
function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
|
|
8359
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/
|
|
8364
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiate_static) */
|
|
8360
8365
|
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
|
|
8361
8366
|
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
|
|
8362
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/
|
|
8367
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiateStreaming_static) */
|
|
8363
8368
|
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
|
|
8364
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/
|
|
8369
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/validate_static) */
|
|
8365
8370
|
function validate(bytes: BufferSource): boolean;
|
|
8366
8371
|
}
|
|
8367
8372
|
|
|
@@ -8637,6 +8642,7 @@ type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-
|
|
|
8637
8642
|
type RequestCredentials = "include" | "omit" | "same-origin";
|
|
8638
8643
|
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
|
|
8639
8644
|
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
|
|
8645
|
+
type RequestPriority = "auto" | "high" | "low";
|
|
8640
8646
|
type RequestRedirect = "error" | "follow" | "manual";
|
|
8641
8647
|
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
|
|
8642
8648
|
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
|