@types/serviceworker 0.0.194 → 0.0.196
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 +3 -1
- package/index.d.ts +59 -14
- package/package.json +1 -1
- package/ts5.5/index.d.ts +59 -14
- package/ts5.6/index.d.ts +59 -14
- package/ts5.9/index.d.ts +59 -14
package/README.md
CHANGED
|
@@ -16,6 +16,8 @@ To use `@types/serviceworker` you need to do two things:
|
|
|
16
16
|
1. **Without "lib"** - You will need to add `"lib": []`. The value you want to add inside your lib should correlate to your [`"target"`](https://www.typescriptlang.org/tsconfig#target). For example if you had `"target": "es2017"`, then you would add `"lib": ["es2017"]`
|
|
17
17
|
1. **With "lib"** - You should remove `"dom"`.
|
|
18
18
|
|
|
19
|
+
1. If you are using TypeScript 6.0+, set [`libReplacement`](https://www.typescriptlang.org/tsconfig/#libReplacement) to `true` in your `tsconfig.json`.
|
|
20
|
+
|
|
19
21
|
That's all.
|
|
20
22
|
|
|
21
23
|
If you'd like to ensure that the DOM types are never accidentally included, you can use [@orta/types-noop](https://www.npmjs.com/package/@orta/type-noops) in TypeScript 4.5+.
|
|
@@ -28,4 +30,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
28
30
|
|
|
29
31
|
## Deploy Metadata
|
|
30
32
|
|
|
31
|
-
You can read what changed in version 0.0.
|
|
33
|
+
You can read what changed in version 0.0.196 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.196.
|
package/index.d.ts
CHANGED
|
@@ -1563,9 +1563,29 @@ declare var CSSKeywordValue: {
|
|
|
1563
1563
|
new(value: string): CSSKeywordValue;
|
|
1564
1564
|
};
|
|
1565
1565
|
|
|
1566
|
+
/**
|
|
1567
|
+
* The **`CSSMathClamp`** interface of the CSS Typed Object Model API represents the CSS clamp() function. It inherits properties and methods from its parent CSSNumericValue.
|
|
1568
|
+
*
|
|
1569
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp)
|
|
1570
|
+
*/
|
|
1566
1571
|
interface CSSMathClamp extends CSSMathValue {
|
|
1572
|
+
/**
|
|
1573
|
+
* The **`lower`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the minimum value of a CSSMathClamp object.
|
|
1574
|
+
*
|
|
1575
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/lower)
|
|
1576
|
+
*/
|
|
1567
1577
|
readonly lower: CSSNumericValue;
|
|
1578
|
+
/**
|
|
1579
|
+
* The **`upper`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the maximum value of a CSSMathClamp object.
|
|
1580
|
+
*
|
|
1581
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/upper)
|
|
1582
|
+
*/
|
|
1568
1583
|
readonly upper: CSSNumericValue;
|
|
1584
|
+
/**
|
|
1585
|
+
* The **`value`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the preferred value of a CSSMathClamp object.
|
|
1586
|
+
*
|
|
1587
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/value)
|
|
1588
|
+
*/
|
|
1569
1589
|
readonly value: CSSNumericValue;
|
|
1570
1590
|
}
|
|
1571
1591
|
|
|
@@ -2076,13 +2096,13 @@ declare var CSSTranslate: {
|
|
|
2076
2096
|
};
|
|
2077
2097
|
|
|
2078
2098
|
/**
|
|
2079
|
-
* The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type.
|
|
2099
|
+
* The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type.
|
|
2080
2100
|
*
|
|
2081
2101
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue)
|
|
2082
2102
|
*/
|
|
2083
2103
|
interface CSSUnitValue extends CSSNumericValue {
|
|
2084
2104
|
/**
|
|
2085
|
-
* The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the type
|
|
2105
|
+
* The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the unit type.
|
|
2086
2106
|
*
|
|
2087
2107
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit)
|
|
2088
2108
|
*/
|
|
@@ -2447,6 +2467,8 @@ interface CanvasTextDrawingStyles {
|
|
|
2447
2467
|
fontStretch: CanvasFontStretch;
|
|
2448
2468
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */
|
|
2449
2469
|
fontVariantCaps: CanvasFontVariantCaps;
|
|
2470
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lang) */
|
|
2471
|
+
lang: string;
|
|
2450
2472
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */
|
|
2451
2473
|
letterSpacing: string;
|
|
2452
2474
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */
|
|
@@ -3739,7 +3761,7 @@ interface Event {
|
|
|
3739
3761
|
*/
|
|
3740
3762
|
readonly eventPhase: number;
|
|
3741
3763
|
/**
|
|
3742
|
-
* The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The
|
|
3764
|
+
* The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false.
|
|
3743
3765
|
*
|
|
3744
3766
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
|
|
3745
3767
|
*/
|
|
@@ -5630,8 +5652,12 @@ interface GPUSupportedLimits {
|
|
|
5630
5652
|
readonly maxSamplersPerShaderStage: number;
|
|
5631
5653
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5632
5654
|
readonly maxStorageBufferBindingSize: number;
|
|
5655
|
+
readonly maxStorageBuffersInFragmentStage: number;
|
|
5656
|
+
readonly maxStorageBuffersInVertexStage: number;
|
|
5633
5657
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5634
5658
|
readonly maxStorageBuffersPerShaderStage: number;
|
|
5659
|
+
readonly maxStorageTexturesInFragmentStage: number;
|
|
5660
|
+
readonly maxStorageTexturesInVertexStage: number;
|
|
5635
5661
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5636
5662
|
readonly maxStorageTexturesPerShaderStage: number;
|
|
5637
5663
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
@@ -7239,7 +7265,7 @@ interface OffscreenCanvas extends EventTarget {
|
|
|
7239
7265
|
getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
|
|
7240
7266
|
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
|
|
7241
7267
|
/**
|
|
7242
|
-
* The **`
|
|
7268
|
+
* The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering.
|
|
7243
7269
|
*
|
|
7244
7270
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap)
|
|
7245
7271
|
*/
|
|
@@ -7270,6 +7296,18 @@ declare var OffscreenCanvasRenderingContext2D: {
|
|
|
7270
7296
|
new(): OffscreenCanvasRenderingContext2D;
|
|
7271
7297
|
};
|
|
7272
7298
|
|
|
7299
|
+
interface Origin {
|
|
7300
|
+
readonly opaque: boolean;
|
|
7301
|
+
isSameOrigin(other: Origin): boolean;
|
|
7302
|
+
isSameSite(other: Origin): boolean;
|
|
7303
|
+
}
|
|
7304
|
+
|
|
7305
|
+
declare var Origin: {
|
|
7306
|
+
prototype: Origin;
|
|
7307
|
+
new(): Origin;
|
|
7308
|
+
from(value: any): Origin;
|
|
7309
|
+
};
|
|
7310
|
+
|
|
7273
7311
|
/**
|
|
7274
7312
|
* The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired.
|
|
7275
7313
|
*
|
|
@@ -7551,6 +7589,12 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
7551
7589
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart)
|
|
7552
7590
|
*/
|
|
7553
7591
|
readonly connectStart: DOMHighResTimeStamp;
|
|
7592
|
+
/**
|
|
7593
|
+
* The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash.
|
|
7594
|
+
*
|
|
7595
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType)
|
|
7596
|
+
*/
|
|
7597
|
+
readonly contentType: string;
|
|
7554
7598
|
/**
|
|
7555
7599
|
* The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding.
|
|
7556
7600
|
*
|
|
@@ -8159,7 +8203,7 @@ interface ReadableStreamBYOBRequest {
|
|
|
8159
8203
|
*
|
|
8160
8204
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view)
|
|
8161
8205
|
*/
|
|
8162
|
-
readonly view:
|
|
8206
|
+
readonly view: Uint8Array<ArrayBuffer> | null;
|
|
8163
8207
|
/**
|
|
8164
8208
|
* The **`respond()`** method of the ReadableStreamBYOBRequest interface is used to signal to the associated readable byte stream that the specified number of bytes were written into the ReadableStreamBYOBRequest.view.
|
|
8165
8209
|
*
|
|
@@ -8493,7 +8537,7 @@ interface SecurityPolicyViolationEvent extends Event {
|
|
|
8493
8537
|
*/
|
|
8494
8538
|
readonly blockedURI: string;
|
|
8495
8539
|
/**
|
|
8496
|
-
* The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the
|
|
8540
|
+
* The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred.
|
|
8497
8541
|
*
|
|
8498
8542
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber)
|
|
8499
8543
|
*/
|
|
@@ -9787,13 +9831,13 @@ interface WEBGL_draw_buffers {
|
|
|
9787
9831
|
*/
|
|
9788
9832
|
interface WEBGL_lose_context {
|
|
9789
9833
|
/**
|
|
9790
|
-
* The **`
|
|
9834
|
+
* The **`loseContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext.
|
|
9791
9835
|
*
|
|
9792
9836
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext)
|
|
9793
9837
|
*/
|
|
9794
9838
|
loseContext(): void;
|
|
9795
9839
|
/**
|
|
9796
|
-
* The **`
|
|
9840
|
+
* The **`restoreContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext.
|
|
9797
9841
|
*
|
|
9798
9842
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext)
|
|
9799
9843
|
*/
|
|
@@ -12825,6 +12869,7 @@ declare namespace WebAssembly {
|
|
|
12825
12869
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
|
|
12826
12870
|
*/
|
|
12827
12871
|
interface Global<T extends ValueType = ValueType> {
|
|
12872
|
+
/** The **`value`** property of the WebAssembly.Global object prototype returns the value contained inside the global variable. */
|
|
12828
12873
|
value: ValueTypeMap[T];
|
|
12829
12874
|
valueOf(): ValueTypeMap[T];
|
|
12830
12875
|
}
|
|
@@ -12900,7 +12945,7 @@ declare namespace WebAssembly {
|
|
|
12900
12945
|
|
|
12901
12946
|
var Module: {
|
|
12902
12947
|
prototype: Module;
|
|
12903
|
-
new(bytes:
|
|
12948
|
+
new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module;
|
|
12904
12949
|
/**
|
|
12905
12950
|
* 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.
|
|
12906
12951
|
*
|
|
@@ -13051,16 +13096,16 @@ declare namespace WebAssembly {
|
|
|
13051
13096
|
type ValueType = keyof ValueTypeMap;
|
|
13052
13097
|
var JSTag: Tag;
|
|
13053
13098
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */
|
|
13054
|
-
function compile(bytes:
|
|
13099
|
+
function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
|
|
13055
13100
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
|
|
13056
13101
|
function compileStreaming(source: Response | PromiseLike<Response>, options?: WebAssemblyCompileOptions): Promise<Module>;
|
|
13057
13102
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */
|
|
13058
|
-
function instantiate(bytes:
|
|
13103
|
+
function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
|
|
13059
13104
|
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
|
|
13060
13105
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */
|
|
13061
13106
|
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
|
|
13062
13107
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
|
|
13063
|
-
function validate(bytes:
|
|
13108
|
+
function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean;
|
|
13064
13109
|
}
|
|
13065
13110
|
|
|
13066
13111
|
/** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */
|
|
@@ -13499,7 +13544,7 @@ type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility"
|
|
|
13499
13544
|
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
|
|
13500
13545
|
type ColorGamut = "p3" | "rec2020" | "srgb";
|
|
13501
13546
|
type ColorSpaceConversion = "default" | "none";
|
|
13502
|
-
type CompressionFormat = "deflate" | "deflate-raw" | "gzip";
|
|
13547
|
+
type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip";
|
|
13503
13548
|
type CookieSameSite = "lax" | "none" | "strict";
|
|
13504
13549
|
type DocumentVisibilityState = "hidden" | "visible";
|
|
13505
13550
|
type EndingType = "native" | "transparent";
|
|
@@ -13571,7 +13616,7 @@ type ReadableStreamType = "bytes";
|
|
|
13571
13616
|
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
|
|
13572
13617
|
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
|
|
13573
13618
|
type RequestCredentials = "include" | "omit" | "same-origin";
|
|
13574
|
-
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
|
|
13619
|
+
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "json" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
|
|
13575
13620
|
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
|
|
13576
13621
|
type RequestPriority = "auto" | "high" | "low";
|
|
13577
13622
|
type RequestRedirect = "error" | "follow" | "manual";
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -1560,9 +1560,29 @@ declare var CSSKeywordValue: {
|
|
|
1560
1560
|
new(value: string): CSSKeywordValue;
|
|
1561
1561
|
};
|
|
1562
1562
|
|
|
1563
|
+
/**
|
|
1564
|
+
* The **`CSSMathClamp`** interface of the CSS Typed Object Model API represents the CSS clamp() function. It inherits properties and methods from its parent CSSNumericValue.
|
|
1565
|
+
*
|
|
1566
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp)
|
|
1567
|
+
*/
|
|
1563
1568
|
interface CSSMathClamp extends CSSMathValue {
|
|
1569
|
+
/**
|
|
1570
|
+
* The **`lower`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the minimum value of a CSSMathClamp object.
|
|
1571
|
+
*
|
|
1572
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/lower)
|
|
1573
|
+
*/
|
|
1564
1574
|
readonly lower: CSSNumericValue;
|
|
1575
|
+
/**
|
|
1576
|
+
* The **`upper`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the maximum value of a CSSMathClamp object.
|
|
1577
|
+
*
|
|
1578
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/upper)
|
|
1579
|
+
*/
|
|
1565
1580
|
readonly upper: CSSNumericValue;
|
|
1581
|
+
/**
|
|
1582
|
+
* The **`value`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the preferred value of a CSSMathClamp object.
|
|
1583
|
+
*
|
|
1584
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/value)
|
|
1585
|
+
*/
|
|
1566
1586
|
readonly value: CSSNumericValue;
|
|
1567
1587
|
}
|
|
1568
1588
|
|
|
@@ -2073,13 +2093,13 @@ declare var CSSTranslate: {
|
|
|
2073
2093
|
};
|
|
2074
2094
|
|
|
2075
2095
|
/**
|
|
2076
|
-
* The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type.
|
|
2096
|
+
* The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type.
|
|
2077
2097
|
*
|
|
2078
2098
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue)
|
|
2079
2099
|
*/
|
|
2080
2100
|
interface CSSUnitValue extends CSSNumericValue {
|
|
2081
2101
|
/**
|
|
2082
|
-
* The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the type
|
|
2102
|
+
* The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the unit type.
|
|
2083
2103
|
*
|
|
2084
2104
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit)
|
|
2085
2105
|
*/
|
|
@@ -2444,6 +2464,8 @@ interface CanvasTextDrawingStyles {
|
|
|
2444
2464
|
fontStretch: CanvasFontStretch;
|
|
2445
2465
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */
|
|
2446
2466
|
fontVariantCaps: CanvasFontVariantCaps;
|
|
2467
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lang) */
|
|
2468
|
+
lang: string;
|
|
2447
2469
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */
|
|
2448
2470
|
letterSpacing: string;
|
|
2449
2471
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */
|
|
@@ -3736,7 +3758,7 @@ interface Event {
|
|
|
3736
3758
|
*/
|
|
3737
3759
|
readonly eventPhase: number;
|
|
3738
3760
|
/**
|
|
3739
|
-
* The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The
|
|
3761
|
+
* The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false.
|
|
3740
3762
|
*
|
|
3741
3763
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
|
|
3742
3764
|
*/
|
|
@@ -5627,8 +5649,12 @@ interface GPUSupportedLimits {
|
|
|
5627
5649
|
readonly maxSamplersPerShaderStage: number;
|
|
5628
5650
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5629
5651
|
readonly maxStorageBufferBindingSize: number;
|
|
5652
|
+
readonly maxStorageBuffersInFragmentStage: number;
|
|
5653
|
+
readonly maxStorageBuffersInVertexStage: number;
|
|
5630
5654
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5631
5655
|
readonly maxStorageBuffersPerShaderStage: number;
|
|
5656
|
+
readonly maxStorageTexturesInFragmentStage: number;
|
|
5657
|
+
readonly maxStorageTexturesInVertexStage: number;
|
|
5632
5658
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5633
5659
|
readonly maxStorageTexturesPerShaderStage: number;
|
|
5634
5660
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
@@ -7236,7 +7262,7 @@ interface OffscreenCanvas extends EventTarget {
|
|
|
7236
7262
|
getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
|
|
7237
7263
|
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
|
|
7238
7264
|
/**
|
|
7239
|
-
* The **`
|
|
7265
|
+
* The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering.
|
|
7240
7266
|
*
|
|
7241
7267
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap)
|
|
7242
7268
|
*/
|
|
@@ -7267,6 +7293,18 @@ declare var OffscreenCanvasRenderingContext2D: {
|
|
|
7267
7293
|
new(): OffscreenCanvasRenderingContext2D;
|
|
7268
7294
|
};
|
|
7269
7295
|
|
|
7296
|
+
interface Origin {
|
|
7297
|
+
readonly opaque: boolean;
|
|
7298
|
+
isSameOrigin(other: Origin): boolean;
|
|
7299
|
+
isSameSite(other: Origin): boolean;
|
|
7300
|
+
}
|
|
7301
|
+
|
|
7302
|
+
declare var Origin: {
|
|
7303
|
+
prototype: Origin;
|
|
7304
|
+
new(): Origin;
|
|
7305
|
+
from(value: any): Origin;
|
|
7306
|
+
};
|
|
7307
|
+
|
|
7270
7308
|
/**
|
|
7271
7309
|
* The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired.
|
|
7272
7310
|
*
|
|
@@ -7548,6 +7586,12 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
7548
7586
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart)
|
|
7549
7587
|
*/
|
|
7550
7588
|
readonly connectStart: DOMHighResTimeStamp;
|
|
7589
|
+
/**
|
|
7590
|
+
* The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash.
|
|
7591
|
+
*
|
|
7592
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType)
|
|
7593
|
+
*/
|
|
7594
|
+
readonly contentType: string;
|
|
7551
7595
|
/**
|
|
7552
7596
|
* The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding.
|
|
7553
7597
|
*
|
|
@@ -8156,7 +8200,7 @@ interface ReadableStreamBYOBRequest {
|
|
|
8156
8200
|
*
|
|
8157
8201
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view)
|
|
8158
8202
|
*/
|
|
8159
|
-
readonly view:
|
|
8203
|
+
readonly view: Uint8Array | null;
|
|
8160
8204
|
/**
|
|
8161
8205
|
* The **`respond()`** method of the ReadableStreamBYOBRequest interface is used to signal to the associated readable byte stream that the specified number of bytes were written into the ReadableStreamBYOBRequest.view.
|
|
8162
8206
|
*
|
|
@@ -8490,7 +8534,7 @@ interface SecurityPolicyViolationEvent extends Event {
|
|
|
8490
8534
|
*/
|
|
8491
8535
|
readonly blockedURI: string;
|
|
8492
8536
|
/**
|
|
8493
|
-
* The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the
|
|
8537
|
+
* The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred.
|
|
8494
8538
|
*
|
|
8495
8539
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber)
|
|
8496
8540
|
*/
|
|
@@ -9784,13 +9828,13 @@ interface WEBGL_draw_buffers {
|
|
|
9784
9828
|
*/
|
|
9785
9829
|
interface WEBGL_lose_context {
|
|
9786
9830
|
/**
|
|
9787
|
-
* The **`
|
|
9831
|
+
* The **`loseContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext.
|
|
9788
9832
|
*
|
|
9789
9833
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext)
|
|
9790
9834
|
*/
|
|
9791
9835
|
loseContext(): void;
|
|
9792
9836
|
/**
|
|
9793
|
-
* The **`
|
|
9837
|
+
* The **`restoreContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext.
|
|
9794
9838
|
*
|
|
9795
9839
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext)
|
|
9796
9840
|
*/
|
|
@@ -12822,6 +12866,7 @@ declare namespace WebAssembly {
|
|
|
12822
12866
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
|
|
12823
12867
|
*/
|
|
12824
12868
|
interface Global<T extends ValueType = ValueType> {
|
|
12869
|
+
/** The **`value`** property of the WebAssembly.Global object prototype returns the value contained inside the global variable. */
|
|
12825
12870
|
value: ValueTypeMap[T];
|
|
12826
12871
|
valueOf(): ValueTypeMap[T];
|
|
12827
12872
|
}
|
|
@@ -12897,7 +12942,7 @@ declare namespace WebAssembly {
|
|
|
12897
12942
|
|
|
12898
12943
|
var Module: {
|
|
12899
12944
|
prototype: Module;
|
|
12900
|
-
new(bytes:
|
|
12945
|
+
new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module;
|
|
12901
12946
|
/**
|
|
12902
12947
|
* 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.
|
|
12903
12948
|
*
|
|
@@ -13048,16 +13093,16 @@ declare namespace WebAssembly {
|
|
|
13048
13093
|
type ValueType = keyof ValueTypeMap;
|
|
13049
13094
|
var JSTag: Tag;
|
|
13050
13095
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */
|
|
13051
|
-
function compile(bytes:
|
|
13096
|
+
function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
|
|
13052
13097
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
|
|
13053
13098
|
function compileStreaming(source: Response | PromiseLike<Response>, options?: WebAssemblyCompileOptions): Promise<Module>;
|
|
13054
13099
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */
|
|
13055
|
-
function instantiate(bytes:
|
|
13100
|
+
function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
|
|
13056
13101
|
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
|
|
13057
13102
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */
|
|
13058
13103
|
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
|
|
13059
13104
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
|
|
13060
|
-
function validate(bytes:
|
|
13105
|
+
function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean;
|
|
13061
13106
|
}
|
|
13062
13107
|
|
|
13063
13108
|
/** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */
|
|
@@ -13496,7 +13541,7 @@ type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility"
|
|
|
13496
13541
|
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
|
|
13497
13542
|
type ColorGamut = "p3" | "rec2020" | "srgb";
|
|
13498
13543
|
type ColorSpaceConversion = "default" | "none";
|
|
13499
|
-
type CompressionFormat = "deflate" | "deflate-raw" | "gzip";
|
|
13544
|
+
type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip";
|
|
13500
13545
|
type CookieSameSite = "lax" | "none" | "strict";
|
|
13501
13546
|
type DocumentVisibilityState = "hidden" | "visible";
|
|
13502
13547
|
type EndingType = "native" | "transparent";
|
|
@@ -13568,7 +13613,7 @@ type ReadableStreamType = "bytes";
|
|
|
13568
13613
|
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
|
|
13569
13614
|
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
|
|
13570
13615
|
type RequestCredentials = "include" | "omit" | "same-origin";
|
|
13571
|
-
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
|
|
13616
|
+
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "json" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
|
|
13572
13617
|
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
|
|
13573
13618
|
type RequestPriority = "auto" | "high" | "low";
|
|
13574
13619
|
type RequestRedirect = "error" | "follow" | "manual";
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -1560,9 +1560,29 @@ declare var CSSKeywordValue: {
|
|
|
1560
1560
|
new(value: string): CSSKeywordValue;
|
|
1561
1561
|
};
|
|
1562
1562
|
|
|
1563
|
+
/**
|
|
1564
|
+
* The **`CSSMathClamp`** interface of the CSS Typed Object Model API represents the CSS clamp() function. It inherits properties and methods from its parent CSSNumericValue.
|
|
1565
|
+
*
|
|
1566
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp)
|
|
1567
|
+
*/
|
|
1563
1568
|
interface CSSMathClamp extends CSSMathValue {
|
|
1569
|
+
/**
|
|
1570
|
+
* The **`lower`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the minimum value of a CSSMathClamp object.
|
|
1571
|
+
*
|
|
1572
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/lower)
|
|
1573
|
+
*/
|
|
1564
1574
|
readonly lower: CSSNumericValue;
|
|
1575
|
+
/**
|
|
1576
|
+
* The **`upper`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the maximum value of a CSSMathClamp object.
|
|
1577
|
+
*
|
|
1578
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/upper)
|
|
1579
|
+
*/
|
|
1565
1580
|
readonly upper: CSSNumericValue;
|
|
1581
|
+
/**
|
|
1582
|
+
* The **`value`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the preferred value of a CSSMathClamp object.
|
|
1583
|
+
*
|
|
1584
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/value)
|
|
1585
|
+
*/
|
|
1566
1586
|
readonly value: CSSNumericValue;
|
|
1567
1587
|
}
|
|
1568
1588
|
|
|
@@ -2073,13 +2093,13 @@ declare var CSSTranslate: {
|
|
|
2073
2093
|
};
|
|
2074
2094
|
|
|
2075
2095
|
/**
|
|
2076
|
-
* The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type.
|
|
2096
|
+
* The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type.
|
|
2077
2097
|
*
|
|
2078
2098
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue)
|
|
2079
2099
|
*/
|
|
2080
2100
|
interface CSSUnitValue extends CSSNumericValue {
|
|
2081
2101
|
/**
|
|
2082
|
-
* The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the type
|
|
2102
|
+
* The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the unit type.
|
|
2083
2103
|
*
|
|
2084
2104
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit)
|
|
2085
2105
|
*/
|
|
@@ -2444,6 +2464,8 @@ interface CanvasTextDrawingStyles {
|
|
|
2444
2464
|
fontStretch: CanvasFontStretch;
|
|
2445
2465
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */
|
|
2446
2466
|
fontVariantCaps: CanvasFontVariantCaps;
|
|
2467
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lang) */
|
|
2468
|
+
lang: string;
|
|
2447
2469
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */
|
|
2448
2470
|
letterSpacing: string;
|
|
2449
2471
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */
|
|
@@ -3736,7 +3758,7 @@ interface Event {
|
|
|
3736
3758
|
*/
|
|
3737
3759
|
readonly eventPhase: number;
|
|
3738
3760
|
/**
|
|
3739
|
-
* The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The
|
|
3761
|
+
* The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false.
|
|
3740
3762
|
*
|
|
3741
3763
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
|
|
3742
3764
|
*/
|
|
@@ -5627,8 +5649,12 @@ interface GPUSupportedLimits {
|
|
|
5627
5649
|
readonly maxSamplersPerShaderStage: number;
|
|
5628
5650
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5629
5651
|
readonly maxStorageBufferBindingSize: number;
|
|
5652
|
+
readonly maxStorageBuffersInFragmentStage: number;
|
|
5653
|
+
readonly maxStorageBuffersInVertexStage: number;
|
|
5630
5654
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5631
5655
|
readonly maxStorageBuffersPerShaderStage: number;
|
|
5656
|
+
readonly maxStorageTexturesInFragmentStage: number;
|
|
5657
|
+
readonly maxStorageTexturesInVertexStage: number;
|
|
5632
5658
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5633
5659
|
readonly maxStorageTexturesPerShaderStage: number;
|
|
5634
5660
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
@@ -7236,7 +7262,7 @@ interface OffscreenCanvas extends EventTarget {
|
|
|
7236
7262
|
getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
|
|
7237
7263
|
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
|
|
7238
7264
|
/**
|
|
7239
|
-
* The **`
|
|
7265
|
+
* The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering.
|
|
7240
7266
|
*
|
|
7241
7267
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap)
|
|
7242
7268
|
*/
|
|
@@ -7267,6 +7293,18 @@ declare var OffscreenCanvasRenderingContext2D: {
|
|
|
7267
7293
|
new(): OffscreenCanvasRenderingContext2D;
|
|
7268
7294
|
};
|
|
7269
7295
|
|
|
7296
|
+
interface Origin {
|
|
7297
|
+
readonly opaque: boolean;
|
|
7298
|
+
isSameOrigin(other: Origin): boolean;
|
|
7299
|
+
isSameSite(other: Origin): boolean;
|
|
7300
|
+
}
|
|
7301
|
+
|
|
7302
|
+
declare var Origin: {
|
|
7303
|
+
prototype: Origin;
|
|
7304
|
+
new(): Origin;
|
|
7305
|
+
from(value: any): Origin;
|
|
7306
|
+
};
|
|
7307
|
+
|
|
7270
7308
|
/**
|
|
7271
7309
|
* The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired.
|
|
7272
7310
|
*
|
|
@@ -7548,6 +7586,12 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
7548
7586
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart)
|
|
7549
7587
|
*/
|
|
7550
7588
|
readonly connectStart: DOMHighResTimeStamp;
|
|
7589
|
+
/**
|
|
7590
|
+
* The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash.
|
|
7591
|
+
*
|
|
7592
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType)
|
|
7593
|
+
*/
|
|
7594
|
+
readonly contentType: string;
|
|
7551
7595
|
/**
|
|
7552
7596
|
* The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding.
|
|
7553
7597
|
*
|
|
@@ -8156,7 +8200,7 @@ interface ReadableStreamBYOBRequest {
|
|
|
8156
8200
|
*
|
|
8157
8201
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view)
|
|
8158
8202
|
*/
|
|
8159
|
-
readonly view:
|
|
8203
|
+
readonly view: Uint8Array | null;
|
|
8160
8204
|
/**
|
|
8161
8205
|
* The **`respond()`** method of the ReadableStreamBYOBRequest interface is used to signal to the associated readable byte stream that the specified number of bytes were written into the ReadableStreamBYOBRequest.view.
|
|
8162
8206
|
*
|
|
@@ -8490,7 +8534,7 @@ interface SecurityPolicyViolationEvent extends Event {
|
|
|
8490
8534
|
*/
|
|
8491
8535
|
readonly blockedURI: string;
|
|
8492
8536
|
/**
|
|
8493
|
-
* The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the
|
|
8537
|
+
* The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred.
|
|
8494
8538
|
*
|
|
8495
8539
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber)
|
|
8496
8540
|
*/
|
|
@@ -9784,13 +9828,13 @@ interface WEBGL_draw_buffers {
|
|
|
9784
9828
|
*/
|
|
9785
9829
|
interface WEBGL_lose_context {
|
|
9786
9830
|
/**
|
|
9787
|
-
* The **`
|
|
9831
|
+
* The **`loseContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext.
|
|
9788
9832
|
*
|
|
9789
9833
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext)
|
|
9790
9834
|
*/
|
|
9791
9835
|
loseContext(): void;
|
|
9792
9836
|
/**
|
|
9793
|
-
* The **`
|
|
9837
|
+
* The **`restoreContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext.
|
|
9794
9838
|
*
|
|
9795
9839
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext)
|
|
9796
9840
|
*/
|
|
@@ -12822,6 +12866,7 @@ declare namespace WebAssembly {
|
|
|
12822
12866
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
|
|
12823
12867
|
*/
|
|
12824
12868
|
interface Global<T extends ValueType = ValueType> {
|
|
12869
|
+
/** The **`value`** property of the WebAssembly.Global object prototype returns the value contained inside the global variable. */
|
|
12825
12870
|
value: ValueTypeMap[T];
|
|
12826
12871
|
valueOf(): ValueTypeMap[T];
|
|
12827
12872
|
}
|
|
@@ -12897,7 +12942,7 @@ declare namespace WebAssembly {
|
|
|
12897
12942
|
|
|
12898
12943
|
var Module: {
|
|
12899
12944
|
prototype: Module;
|
|
12900
|
-
new(bytes:
|
|
12945
|
+
new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module;
|
|
12901
12946
|
/**
|
|
12902
12947
|
* 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.
|
|
12903
12948
|
*
|
|
@@ -13048,16 +13093,16 @@ declare namespace WebAssembly {
|
|
|
13048
13093
|
type ValueType = keyof ValueTypeMap;
|
|
13049
13094
|
var JSTag: Tag;
|
|
13050
13095
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */
|
|
13051
|
-
function compile(bytes:
|
|
13096
|
+
function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
|
|
13052
13097
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
|
|
13053
13098
|
function compileStreaming(source: Response | PromiseLike<Response>, options?: WebAssemblyCompileOptions): Promise<Module>;
|
|
13054
13099
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */
|
|
13055
|
-
function instantiate(bytes:
|
|
13100
|
+
function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
|
|
13056
13101
|
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
|
|
13057
13102
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */
|
|
13058
13103
|
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
|
|
13059
13104
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
|
|
13060
|
-
function validate(bytes:
|
|
13105
|
+
function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean;
|
|
13061
13106
|
}
|
|
13062
13107
|
|
|
13063
13108
|
/** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */
|
|
@@ -13496,7 +13541,7 @@ type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility"
|
|
|
13496
13541
|
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
|
|
13497
13542
|
type ColorGamut = "p3" | "rec2020" | "srgb";
|
|
13498
13543
|
type ColorSpaceConversion = "default" | "none";
|
|
13499
|
-
type CompressionFormat = "deflate" | "deflate-raw" | "gzip";
|
|
13544
|
+
type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip";
|
|
13500
13545
|
type CookieSameSite = "lax" | "none" | "strict";
|
|
13501
13546
|
type DocumentVisibilityState = "hidden" | "visible";
|
|
13502
13547
|
type EndingType = "native" | "transparent";
|
|
@@ -13568,7 +13613,7 @@ type ReadableStreamType = "bytes";
|
|
|
13568
13613
|
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
|
|
13569
13614
|
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
|
|
13570
13615
|
type RequestCredentials = "include" | "omit" | "same-origin";
|
|
13571
|
-
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
|
|
13616
|
+
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "json" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
|
|
13572
13617
|
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
|
|
13573
13618
|
type RequestPriority = "auto" | "high" | "low";
|
|
13574
13619
|
type RequestRedirect = "error" | "follow" | "manual";
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -1560,9 +1560,29 @@ declare var CSSKeywordValue: {
|
|
|
1560
1560
|
new(value: string): CSSKeywordValue;
|
|
1561
1561
|
};
|
|
1562
1562
|
|
|
1563
|
+
/**
|
|
1564
|
+
* The **`CSSMathClamp`** interface of the CSS Typed Object Model API represents the CSS clamp() function. It inherits properties and methods from its parent CSSNumericValue.
|
|
1565
|
+
*
|
|
1566
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp)
|
|
1567
|
+
*/
|
|
1563
1568
|
interface CSSMathClamp extends CSSMathValue {
|
|
1569
|
+
/**
|
|
1570
|
+
* The **`lower`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the minimum value of a CSSMathClamp object.
|
|
1571
|
+
*
|
|
1572
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/lower)
|
|
1573
|
+
*/
|
|
1564
1574
|
readonly lower: CSSNumericValue;
|
|
1575
|
+
/**
|
|
1576
|
+
* The **`upper`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the maximum value of a CSSMathClamp object.
|
|
1577
|
+
*
|
|
1578
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/upper)
|
|
1579
|
+
*/
|
|
1565
1580
|
readonly upper: CSSNumericValue;
|
|
1581
|
+
/**
|
|
1582
|
+
* The **`value`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the preferred value of a CSSMathClamp object.
|
|
1583
|
+
*
|
|
1584
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/value)
|
|
1585
|
+
*/
|
|
1566
1586
|
readonly value: CSSNumericValue;
|
|
1567
1587
|
}
|
|
1568
1588
|
|
|
@@ -2073,13 +2093,13 @@ declare var CSSTranslate: {
|
|
|
2073
2093
|
};
|
|
2074
2094
|
|
|
2075
2095
|
/**
|
|
2076
|
-
* The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type.
|
|
2096
|
+
* The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type.
|
|
2077
2097
|
*
|
|
2078
2098
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue)
|
|
2079
2099
|
*/
|
|
2080
2100
|
interface CSSUnitValue extends CSSNumericValue {
|
|
2081
2101
|
/**
|
|
2082
|
-
* The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the type
|
|
2102
|
+
* The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the unit type.
|
|
2083
2103
|
*
|
|
2084
2104
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit)
|
|
2085
2105
|
*/
|
|
@@ -2444,6 +2464,8 @@ interface CanvasTextDrawingStyles {
|
|
|
2444
2464
|
fontStretch: CanvasFontStretch;
|
|
2445
2465
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */
|
|
2446
2466
|
fontVariantCaps: CanvasFontVariantCaps;
|
|
2467
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lang) */
|
|
2468
|
+
lang: string;
|
|
2447
2469
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */
|
|
2448
2470
|
letterSpacing: string;
|
|
2449
2471
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */
|
|
@@ -3736,7 +3758,7 @@ interface Event {
|
|
|
3736
3758
|
*/
|
|
3737
3759
|
readonly eventPhase: number;
|
|
3738
3760
|
/**
|
|
3739
|
-
* The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The
|
|
3761
|
+
* The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false.
|
|
3740
3762
|
*
|
|
3741
3763
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
|
|
3742
3764
|
*/
|
|
@@ -5627,8 +5649,12 @@ interface GPUSupportedLimits {
|
|
|
5627
5649
|
readonly maxSamplersPerShaderStage: number;
|
|
5628
5650
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5629
5651
|
readonly maxStorageBufferBindingSize: number;
|
|
5652
|
+
readonly maxStorageBuffersInFragmentStage: number;
|
|
5653
|
+
readonly maxStorageBuffersInVertexStage: number;
|
|
5630
5654
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5631
5655
|
readonly maxStorageBuffersPerShaderStage: number;
|
|
5656
|
+
readonly maxStorageTexturesInFragmentStage: number;
|
|
5657
|
+
readonly maxStorageTexturesInVertexStage: number;
|
|
5632
5658
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5633
5659
|
readonly maxStorageTexturesPerShaderStage: number;
|
|
5634
5660
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
@@ -7236,7 +7262,7 @@ interface OffscreenCanvas extends EventTarget {
|
|
|
7236
7262
|
getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
|
|
7237
7263
|
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
|
|
7238
7264
|
/**
|
|
7239
|
-
* The **`
|
|
7265
|
+
* The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering.
|
|
7240
7266
|
*
|
|
7241
7267
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap)
|
|
7242
7268
|
*/
|
|
@@ -7267,6 +7293,18 @@ declare var OffscreenCanvasRenderingContext2D: {
|
|
|
7267
7293
|
new(): OffscreenCanvasRenderingContext2D;
|
|
7268
7294
|
};
|
|
7269
7295
|
|
|
7296
|
+
interface Origin {
|
|
7297
|
+
readonly opaque: boolean;
|
|
7298
|
+
isSameOrigin(other: Origin): boolean;
|
|
7299
|
+
isSameSite(other: Origin): boolean;
|
|
7300
|
+
}
|
|
7301
|
+
|
|
7302
|
+
declare var Origin: {
|
|
7303
|
+
prototype: Origin;
|
|
7304
|
+
new(): Origin;
|
|
7305
|
+
from(value: any): Origin;
|
|
7306
|
+
};
|
|
7307
|
+
|
|
7270
7308
|
/**
|
|
7271
7309
|
* The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired.
|
|
7272
7310
|
*
|
|
@@ -7548,6 +7586,12 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
7548
7586
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart)
|
|
7549
7587
|
*/
|
|
7550
7588
|
readonly connectStart: DOMHighResTimeStamp;
|
|
7589
|
+
/**
|
|
7590
|
+
* The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash.
|
|
7591
|
+
*
|
|
7592
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType)
|
|
7593
|
+
*/
|
|
7594
|
+
readonly contentType: string;
|
|
7551
7595
|
/**
|
|
7552
7596
|
* The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding.
|
|
7553
7597
|
*
|
|
@@ -8156,7 +8200,7 @@ interface ReadableStreamBYOBRequest {
|
|
|
8156
8200
|
*
|
|
8157
8201
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view)
|
|
8158
8202
|
*/
|
|
8159
|
-
readonly view:
|
|
8203
|
+
readonly view: Uint8Array<ArrayBuffer> | null;
|
|
8160
8204
|
/**
|
|
8161
8205
|
* The **`respond()`** method of the ReadableStreamBYOBRequest interface is used to signal to the associated readable byte stream that the specified number of bytes were written into the ReadableStreamBYOBRequest.view.
|
|
8162
8206
|
*
|
|
@@ -8490,7 +8534,7 @@ interface SecurityPolicyViolationEvent extends Event {
|
|
|
8490
8534
|
*/
|
|
8491
8535
|
readonly blockedURI: string;
|
|
8492
8536
|
/**
|
|
8493
|
-
* The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the
|
|
8537
|
+
* The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred.
|
|
8494
8538
|
*
|
|
8495
8539
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber)
|
|
8496
8540
|
*/
|
|
@@ -9784,13 +9828,13 @@ interface WEBGL_draw_buffers {
|
|
|
9784
9828
|
*/
|
|
9785
9829
|
interface WEBGL_lose_context {
|
|
9786
9830
|
/**
|
|
9787
|
-
* The **`
|
|
9831
|
+
* The **`loseContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext.
|
|
9788
9832
|
*
|
|
9789
9833
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext)
|
|
9790
9834
|
*/
|
|
9791
9835
|
loseContext(): void;
|
|
9792
9836
|
/**
|
|
9793
|
-
* The **`
|
|
9837
|
+
* The **`restoreContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext.
|
|
9794
9838
|
*
|
|
9795
9839
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext)
|
|
9796
9840
|
*/
|
|
@@ -12822,6 +12866,7 @@ declare namespace WebAssembly {
|
|
|
12822
12866
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
|
|
12823
12867
|
*/
|
|
12824
12868
|
interface Global<T extends ValueType = ValueType> {
|
|
12869
|
+
/** The **`value`** property of the WebAssembly.Global object prototype returns the value contained inside the global variable. */
|
|
12825
12870
|
value: ValueTypeMap[T];
|
|
12826
12871
|
valueOf(): ValueTypeMap[T];
|
|
12827
12872
|
}
|
|
@@ -12897,7 +12942,7 @@ declare namespace WebAssembly {
|
|
|
12897
12942
|
|
|
12898
12943
|
var Module: {
|
|
12899
12944
|
prototype: Module;
|
|
12900
|
-
new(bytes:
|
|
12945
|
+
new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module;
|
|
12901
12946
|
/**
|
|
12902
12947
|
* 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.
|
|
12903
12948
|
*
|
|
@@ -13048,16 +13093,16 @@ declare namespace WebAssembly {
|
|
|
13048
13093
|
type ValueType = keyof ValueTypeMap;
|
|
13049
13094
|
var JSTag: Tag;
|
|
13050
13095
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */
|
|
13051
|
-
function compile(bytes:
|
|
13096
|
+
function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
|
|
13052
13097
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
|
|
13053
13098
|
function compileStreaming(source: Response | PromiseLike<Response>, options?: WebAssemblyCompileOptions): Promise<Module>;
|
|
13054
13099
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */
|
|
13055
|
-
function instantiate(bytes:
|
|
13100
|
+
function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
|
|
13056
13101
|
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
|
|
13057
13102
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */
|
|
13058
13103
|
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
|
|
13059
13104
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
|
|
13060
|
-
function validate(bytes:
|
|
13105
|
+
function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean;
|
|
13061
13106
|
}
|
|
13062
13107
|
|
|
13063
13108
|
/** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */
|
|
@@ -13496,7 +13541,7 @@ type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility"
|
|
|
13496
13541
|
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
|
|
13497
13542
|
type ColorGamut = "p3" | "rec2020" | "srgb";
|
|
13498
13543
|
type ColorSpaceConversion = "default" | "none";
|
|
13499
|
-
type CompressionFormat = "deflate" | "deflate-raw" | "gzip";
|
|
13544
|
+
type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip";
|
|
13500
13545
|
type CookieSameSite = "lax" | "none" | "strict";
|
|
13501
13546
|
type DocumentVisibilityState = "hidden" | "visible";
|
|
13502
13547
|
type EndingType = "native" | "transparent";
|
|
@@ -13568,7 +13613,7 @@ type ReadableStreamType = "bytes";
|
|
|
13568
13613
|
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
|
|
13569
13614
|
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
|
|
13570
13615
|
type RequestCredentials = "include" | "omit" | "same-origin";
|
|
13571
|
-
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
|
|
13616
|
+
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "json" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
|
|
13572
13617
|
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
|
|
13573
13618
|
type RequestPriority = "auto" | "high" | "low";
|
|
13574
13619
|
type RequestRedirect = "error" | "follow" | "manual";
|