@typescript/typescript-darwin-x64 7.1.0-dev.20261005.1 → 7.1.0-dev.20261007.1
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/lib/lib.dom.d.ts +1193 -277
- package/lib/lib.webworker.d.ts +418 -26
- package/lib/tsc +0 -0
- package/package.json +2 -2
package/lib/lib.webworker.d.ts
CHANGED
|
@@ -557,6 +557,7 @@ interface GPUPipelineErrorInit {
|
|
|
557
557
|
|
|
558
558
|
interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
559
559
|
bindGroupLayouts: (GPUBindGroupLayout | null)[];
|
|
560
|
+
immediateSize?: GPUSize32;
|
|
560
561
|
}
|
|
561
562
|
|
|
562
563
|
interface GPUPrimitiveState {
|
|
@@ -932,6 +933,11 @@ interface NavigationPreloadState {
|
|
|
932
933
|
headerValue?: string;
|
|
933
934
|
}
|
|
934
935
|
|
|
936
|
+
interface NotificationAction {
|
|
937
|
+
action: string;
|
|
938
|
+
title: string;
|
|
939
|
+
}
|
|
940
|
+
|
|
935
941
|
interface NotificationEventInit extends ExtendableEventInit {
|
|
936
942
|
action?: string;
|
|
937
943
|
notification: Notification;
|
|
@@ -1206,6 +1212,34 @@ interface SecurityPolicyViolationEventInit extends EventInit {
|
|
|
1206
1212
|
violatedDirective?: string;
|
|
1207
1213
|
}
|
|
1208
1214
|
|
|
1215
|
+
interface SerialInputSignals {
|
|
1216
|
+
clearToSend: boolean;
|
|
1217
|
+
dataCarrierDetect: boolean;
|
|
1218
|
+
dataSetReady: boolean;
|
|
1219
|
+
ringIndicator: boolean;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
interface SerialOptions {
|
|
1223
|
+
baudRate: number;
|
|
1224
|
+
bufferSize?: number;
|
|
1225
|
+
dataBits?: number;
|
|
1226
|
+
flowControl?: FlowControlType;
|
|
1227
|
+
parity?: ParityType;
|
|
1228
|
+
stopBits?: number;
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
interface SerialOutputSignals {
|
|
1232
|
+
break?: boolean;
|
|
1233
|
+
dataTerminalReady?: boolean;
|
|
1234
|
+
requestToSend?: boolean;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
interface SerialPortInfo {
|
|
1238
|
+
bluetoothServiceClassId?: BluetoothServiceUUID;
|
|
1239
|
+
usbProductId?: number;
|
|
1240
|
+
usbVendorId?: number;
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1209
1243
|
interface StorageEstimate {
|
|
1210
1244
|
quota?: number;
|
|
1211
1245
|
usage?: number;
|
|
@@ -1470,6 +1504,23 @@ interface WebTransportCloseInfo {
|
|
|
1470
1504
|
reason?: string;
|
|
1471
1505
|
}
|
|
1472
1506
|
|
|
1507
|
+
interface WebTransportConnectionStats {
|
|
1508
|
+
bytesReceived?: number;
|
|
1509
|
+
datagrams: WebTransportDatagramStats;
|
|
1510
|
+
minRtt?: DOMHighResTimeStamp;
|
|
1511
|
+
packetsLost?: number;
|
|
1512
|
+
packetsReceived?: number;
|
|
1513
|
+
packetsSent?: number;
|
|
1514
|
+
rttVariation?: DOMHighResTimeStamp;
|
|
1515
|
+
smoothedRtt?: DOMHighResTimeStamp;
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
interface WebTransportDatagramStats {
|
|
1519
|
+
droppedIncoming?: number;
|
|
1520
|
+
expiredOutgoing?: number;
|
|
1521
|
+
lostOutgoing?: number;
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1473
1524
|
interface WebTransportErrorOptions {
|
|
1474
1525
|
source?: WebTransportErrorSource;
|
|
1475
1526
|
streamErrorCode?: number | null;
|
|
@@ -1488,6 +1539,11 @@ interface WebTransportOptions {
|
|
|
1488
1539
|
serverCertificateHashes?: WebTransportHash[];
|
|
1489
1540
|
}
|
|
1490
1541
|
|
|
1542
|
+
interface WebTransportReceiveStreamStats {
|
|
1543
|
+
bytesRead?: number;
|
|
1544
|
+
bytesReceived?: number;
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1491
1547
|
interface WebTransportSendOptions {
|
|
1492
1548
|
sendOrder?: number;
|
|
1493
1549
|
}
|
|
@@ -1495,6 +1551,12 @@ interface WebTransportSendOptions {
|
|
|
1495
1551
|
interface WebTransportSendStreamOptions extends WebTransportSendOptions {
|
|
1496
1552
|
}
|
|
1497
1553
|
|
|
1554
|
+
interface WebTransportSendStreamStats {
|
|
1555
|
+
bytesAcknowledged?: number;
|
|
1556
|
+
bytesSent?: number;
|
|
1557
|
+
bytesWritten?: number;
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1498
1560
|
interface WorkerOptions {
|
|
1499
1561
|
credentials?: RequestCredentials;
|
|
1500
1562
|
name?: string;
|
|
@@ -1912,21 +1974,53 @@ declare var Blob: {
|
|
|
1912
1974
|
};
|
|
1913
1975
|
|
|
1914
1976
|
interface Body {
|
|
1915
|
-
/**
|
|
1977
|
+
/**
|
|
1978
|
+
* The **`body`** read-only property of the Request interface contains a ReadableStream with the body contents that have been added to the request. Note that a request using the GET or HEAD method cannot have a body and null is returned in these cases.
|
|
1979
|
+
*
|
|
1980
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body)
|
|
1981
|
+
*/
|
|
1916
1982
|
readonly body: ReadableStream<Uint8Array<ArrayBuffer>> | null;
|
|
1917
|
-
/**
|
|
1983
|
+
/**
|
|
1984
|
+
* The **`bodyUsed`** read-only property of the Request interface is a boolean value that indicates whether the request body has been read yet.
|
|
1985
|
+
*
|
|
1986
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed)
|
|
1987
|
+
*/
|
|
1918
1988
|
readonly bodyUsed: boolean;
|
|
1919
|
-
/**
|
|
1989
|
+
/**
|
|
1990
|
+
* The **`arrayBuffer()`** method of the Request interface reads the request body and returns it as a promise that resolves with an ArrayBuffer.
|
|
1991
|
+
*
|
|
1992
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer)
|
|
1993
|
+
*/
|
|
1920
1994
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
1921
|
-
/**
|
|
1995
|
+
/**
|
|
1996
|
+
* The **`blob()`** method of the Request interface reads the request body and returns it as a promise that resolves with a Blob.
|
|
1997
|
+
*
|
|
1998
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob)
|
|
1999
|
+
*/
|
|
1922
2000
|
blob(): Promise<Blob>;
|
|
1923
|
-
/**
|
|
2001
|
+
/**
|
|
2002
|
+
* The **`bytes()`** method of the Request interface reads the request body and returns it as a promise that resolves with a Uint8Array.
|
|
2003
|
+
*
|
|
2004
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes)
|
|
2005
|
+
*/
|
|
1924
2006
|
bytes(): Promise<Uint8Array<ArrayBuffer>>;
|
|
1925
|
-
/**
|
|
2007
|
+
/**
|
|
2008
|
+
* The **`formData()`** method of the Request interface reads the request body and returns it as a promise that resolves with a FormData object.
|
|
2009
|
+
*
|
|
2010
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData)
|
|
2011
|
+
*/
|
|
1926
2012
|
formData(): Promise<FormData>;
|
|
1927
|
-
/**
|
|
2013
|
+
/**
|
|
2014
|
+
* The **`json()`** method of the Request interface reads the request body and returns it as a promise that resolves with the result of parsing the body text as JSON.
|
|
2015
|
+
*
|
|
2016
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json)
|
|
2017
|
+
*/
|
|
1928
2018
|
json(): Promise<any>;
|
|
1929
|
-
/**
|
|
2019
|
+
/**
|
|
2020
|
+
* The **`text()`** method of the Request interface reads the request body and returns it as a promise that resolves with a String. The response is always decoded using UTF-8.
|
|
2021
|
+
*
|
|
2022
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text)
|
|
2023
|
+
*/
|
|
1930
2024
|
text(): Promise<string>;
|
|
1931
2025
|
}
|
|
1932
2026
|
|
|
@@ -2027,9 +2121,29 @@ declare var CSSKeywordValue: {
|
|
|
2027
2121
|
new(value: string): CSSKeywordValue;
|
|
2028
2122
|
};
|
|
2029
2123
|
|
|
2124
|
+
/**
|
|
2125
|
+
* The **`CSSMathClamp`** interface of the CSS Typed Object Model API represents the CSS clamp() function. It inherits properties and methods from its parent CSSNumericValue.
|
|
2126
|
+
*
|
|
2127
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp)
|
|
2128
|
+
*/
|
|
2030
2129
|
interface CSSMathClamp extends CSSMathValue {
|
|
2130
|
+
/**
|
|
2131
|
+
* The **`lower`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the minimum value of a CSSMathClamp object.
|
|
2132
|
+
*
|
|
2133
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/lower)
|
|
2134
|
+
*/
|
|
2031
2135
|
readonly lower: CSSNumericValue;
|
|
2136
|
+
/**
|
|
2137
|
+
* The **`upper`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the maximum value of a CSSMathClamp object.
|
|
2138
|
+
*
|
|
2139
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/upper)
|
|
2140
|
+
*/
|
|
2032
2141
|
readonly upper: CSSNumericValue;
|
|
2142
|
+
/**
|
|
2143
|
+
* The **`value`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the preferred value of a CSSMathClamp object.
|
|
2144
|
+
*
|
|
2145
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/value)
|
|
2146
|
+
*/
|
|
2033
2147
|
readonly value: CSSNumericValue;
|
|
2034
2148
|
}
|
|
2035
2149
|
|
|
@@ -2540,13 +2654,13 @@ declare var CSSTranslate: {
|
|
|
2540
2654
|
};
|
|
2541
2655
|
|
|
2542
2656
|
/**
|
|
2543
|
-
* The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type.
|
|
2657
|
+
* The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type.
|
|
2544
2658
|
*
|
|
2545
2659
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue)
|
|
2546
2660
|
*/
|
|
2547
2661
|
interface CSSUnitValue extends CSSNumericValue {
|
|
2548
2662
|
/**
|
|
2549
|
-
* The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the type
|
|
2663
|
+
* The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the unit type.
|
|
2550
2664
|
*
|
|
2551
2665
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit)
|
|
2552
2666
|
*/
|
|
@@ -2911,6 +3025,8 @@ interface CanvasTextDrawingStyles {
|
|
|
2911
3025
|
fontStretch: CanvasFontStretch;
|
|
2912
3026
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */
|
|
2913
3027
|
fontVariantCaps: CanvasFontVariantCaps;
|
|
3028
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lang) */
|
|
3029
|
+
lang: string;
|
|
2914
3030
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */
|
|
2915
3031
|
letterSpacing: string;
|
|
2916
3032
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */
|
|
@@ -4333,7 +4449,7 @@ interface Event {
|
|
|
4333
4449
|
*/
|
|
4334
4450
|
readonly eventPhase: number;
|
|
4335
4451
|
/**
|
|
4336
|
-
* 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
|
|
4452
|
+
* 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.
|
|
4337
4453
|
*
|
|
4338
4454
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
|
|
4339
4455
|
*/
|
|
@@ -6318,8 +6434,12 @@ interface GPUSupportedLimits {
|
|
|
6318
6434
|
readonly maxSamplersPerShaderStage: number;
|
|
6319
6435
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
6320
6436
|
readonly maxStorageBufferBindingSize: number;
|
|
6437
|
+
readonly maxStorageBuffersInFragmentStage: number;
|
|
6438
|
+
readonly maxStorageBuffersInVertexStage: number;
|
|
6321
6439
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
6322
6440
|
readonly maxStorageBuffersPerShaderStage: number;
|
|
6441
|
+
readonly maxStorageTexturesInFragmentStage: number;
|
|
6442
|
+
readonly maxStorageTexturesInVertexStage: number;
|
|
6323
6443
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
6324
6444
|
readonly maxStorageTexturesPerShaderStage: number;
|
|
6325
6445
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
@@ -7785,6 +7905,12 @@ interface NotificationEventMap {
|
|
|
7785
7905
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
|
|
7786
7906
|
*/
|
|
7787
7907
|
interface Notification extends EventTarget {
|
|
7908
|
+
/**
|
|
7909
|
+
* The **`actions`** read-only property of the Notification interface provides the actions available for users to choose from for interacting with the notification.
|
|
7910
|
+
*
|
|
7911
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/actions)
|
|
7912
|
+
*/
|
|
7913
|
+
readonly actions: ReadonlyArray<NotificationAction>;
|
|
7788
7914
|
/**
|
|
7789
7915
|
* The **`body`** read-only property of the Notification interface indicates the body string of the notification, as specified in the body option of the Notification() constructor.
|
|
7790
7916
|
*
|
|
@@ -7862,6 +7988,12 @@ interface Notification extends EventTarget {
|
|
|
7862
7988
|
declare var Notification: {
|
|
7863
7989
|
prototype: Notification;
|
|
7864
7990
|
new(title: string, options?: NotificationOptions): Notification;
|
|
7991
|
+
/**
|
|
7992
|
+
* The **`maxActions`** read-only static property of the Notification interface returns the maximum number of actions supported by the device and the User Agent. Effectively, this is the maximum number of elements in Notification.actions array which will be respected by the User Agent.
|
|
7993
|
+
*
|
|
7994
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/maxActions_static)
|
|
7995
|
+
*/
|
|
7996
|
+
readonly maxActions: number;
|
|
7865
7997
|
/**
|
|
7866
7998
|
* The **`permission`** read-only static property of the Notification interface indicates the current permission granted by the user for the current origin to display web notifications.
|
|
7867
7999
|
*
|
|
@@ -8096,9 +8228,10 @@ interface OffscreenCanvas extends EventTarget {
|
|
|
8096
8228
|
getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
|
|
8097
8229
|
getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
|
|
8098
8230
|
getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
|
|
8231
|
+
getContext(contextId: "webgpu"): GPUCanvasContext | null;
|
|
8099
8232
|
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
|
|
8100
8233
|
/**
|
|
8101
|
-
* The **`
|
|
8234
|
+
* 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.
|
|
8102
8235
|
*
|
|
8103
8236
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap)
|
|
8104
8237
|
*/
|
|
@@ -8129,6 +8262,18 @@ declare var OffscreenCanvasRenderingContext2D: {
|
|
|
8129
8262
|
new(): OffscreenCanvasRenderingContext2D;
|
|
8130
8263
|
};
|
|
8131
8264
|
|
|
8265
|
+
interface Origin {
|
|
8266
|
+
readonly opaque: boolean;
|
|
8267
|
+
isSameOrigin(other: Origin): boolean;
|
|
8268
|
+
isSameSite(other: Origin): boolean;
|
|
8269
|
+
}
|
|
8270
|
+
|
|
8271
|
+
declare var Origin: {
|
|
8272
|
+
prototype: Origin;
|
|
8273
|
+
new(): Origin;
|
|
8274
|
+
from(value: any): Origin;
|
|
8275
|
+
};
|
|
8276
|
+
|
|
8132
8277
|
/**
|
|
8133
8278
|
* 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.
|
|
8134
8279
|
*
|
|
@@ -8410,12 +8555,24 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
8410
8555
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart)
|
|
8411
8556
|
*/
|
|
8412
8557
|
readonly connectStart: DOMHighResTimeStamp;
|
|
8558
|
+
/**
|
|
8559
|
+
* 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.
|
|
8560
|
+
*
|
|
8561
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType)
|
|
8562
|
+
*/
|
|
8563
|
+
readonly contentType: string;
|
|
8413
8564
|
/**
|
|
8414
8565
|
* 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.
|
|
8415
8566
|
*
|
|
8416
8567
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize)
|
|
8417
8568
|
*/
|
|
8418
8569
|
readonly decodedBodySize: number;
|
|
8570
|
+
/**
|
|
8571
|
+
* The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch.
|
|
8572
|
+
*
|
|
8573
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType)
|
|
8574
|
+
*/
|
|
8575
|
+
readonly deliveryType: string;
|
|
8419
8576
|
/**
|
|
8420
8577
|
* The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource.
|
|
8421
8578
|
*
|
|
@@ -8440,6 +8597,18 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
8440
8597
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart)
|
|
8441
8598
|
*/
|
|
8442
8599
|
readonly fetchStart: DOMHighResTimeStamp;
|
|
8600
|
+
/**
|
|
8601
|
+
* The **`finalResponseHeadersStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the final document response (for example, 200 OK) from the server.
|
|
8602
|
+
*
|
|
8603
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart)
|
|
8604
|
+
*/
|
|
8605
|
+
readonly finalResponseHeadersStart: DOMHighResTimeStamp;
|
|
8606
|
+
/**
|
|
8607
|
+
* The **`firstInterimResponseStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the interim 1xx response (for example, 100 Continue or 103 Early Hints) from the server.
|
|
8608
|
+
*
|
|
8609
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart)
|
|
8610
|
+
*/
|
|
8611
|
+
readonly firstInterimResponseStart: DOMHighResTimeStamp;
|
|
8443
8612
|
/**
|
|
8444
8613
|
* The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load.
|
|
8445
8614
|
*
|
|
@@ -9037,7 +9206,7 @@ interface RTCEncodedVideoFrame {
|
|
|
9037
9206
|
*/
|
|
9038
9207
|
readonly timestamp: number;
|
|
9039
9208
|
/**
|
|
9040
|
-
* The **`type`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame
|
|
9209
|
+
* The **`type`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame or a delta frame.
|
|
9041
9210
|
*
|
|
9042
9211
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type)
|
|
9043
9212
|
*/
|
|
@@ -9249,7 +9418,7 @@ interface ReadableStreamBYOBRequest {
|
|
|
9249
9418
|
*
|
|
9250
9419
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view)
|
|
9251
9420
|
*/
|
|
9252
|
-
readonly view:
|
|
9421
|
+
readonly view: Uint8Array<ArrayBuffer> | null;
|
|
9253
9422
|
/**
|
|
9254
9423
|
* 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.
|
|
9255
9424
|
*
|
|
@@ -9583,7 +9752,7 @@ interface SecurityPolicyViolationEvent extends Event {
|
|
|
9583
9752
|
*/
|
|
9584
9753
|
readonly blockedURI: string;
|
|
9585
9754
|
/**
|
|
9586
|
-
* The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the
|
|
9755
|
+
* 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.
|
|
9587
9756
|
*
|
|
9588
9757
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber)
|
|
9589
9758
|
*/
|
|
@@ -9655,6 +9824,107 @@ declare var SecurityPolicyViolationEvent: {
|
|
|
9655
9824
|
new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;
|
|
9656
9825
|
};
|
|
9657
9826
|
|
|
9827
|
+
/**
|
|
9828
|
+
* The **`Serial`** interface of the Web Serial API provides attributes and methods for finding and connecting to serial ports from a web page.
|
|
9829
|
+
* Available only in secure contexts.
|
|
9830
|
+
*
|
|
9831
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Serial)
|
|
9832
|
+
*/
|
|
9833
|
+
interface Serial extends EventTarget {
|
|
9834
|
+
/**
|
|
9835
|
+
* The **`getPorts()`** method of the Serial interface returns a Promise that resolves with an array of SerialPort objects representing serial ports connected to the host which the origin has permission to access.
|
|
9836
|
+
*
|
|
9837
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Serial/getPorts)
|
|
9838
|
+
*/
|
|
9839
|
+
getPorts(): Promise<SerialPort[]>;
|
|
9840
|
+
}
|
|
9841
|
+
|
|
9842
|
+
declare var Serial: {
|
|
9843
|
+
prototype: Serial;
|
|
9844
|
+
new(): Serial;
|
|
9845
|
+
};
|
|
9846
|
+
|
|
9847
|
+
interface SerialPortEventMap {
|
|
9848
|
+
"connect": Event;
|
|
9849
|
+
"disconnect": Event;
|
|
9850
|
+
}
|
|
9851
|
+
|
|
9852
|
+
/**
|
|
9853
|
+
* The **`SerialPort`** interface of the Web Serial API provides access to a serial port on the host device.
|
|
9854
|
+
* Available only in secure contexts.
|
|
9855
|
+
*
|
|
9856
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SerialPort)
|
|
9857
|
+
*/
|
|
9858
|
+
interface SerialPort extends EventTarget {
|
|
9859
|
+
/**
|
|
9860
|
+
* The **`connected`** read-only property of the SerialPort interface returns a boolean value that indicates whether the port is logically connected to the device.
|
|
9861
|
+
*
|
|
9862
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SerialPort/connected)
|
|
9863
|
+
*/
|
|
9864
|
+
readonly connected: boolean;
|
|
9865
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SerialPort/connect_event) */
|
|
9866
|
+
onconnect: ((this: SerialPort, ev: Event) => any) | null;
|
|
9867
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SerialPort/disconnect_event) */
|
|
9868
|
+
ondisconnect: ((this: SerialPort, ev: Event) => any) | null;
|
|
9869
|
+
/**
|
|
9870
|
+
* The **`readable`** read-only property of the SerialPort interface returns a ReadableStream for receiving data from the device connected to the port. Chunks read from this stream are instances of Uint8Array. This property is non-null as long as the port is open and has not encountered a fatal error.
|
|
9871
|
+
*
|
|
9872
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SerialPort/readable)
|
|
9873
|
+
*/
|
|
9874
|
+
readonly readable: ReadableStream | null;
|
|
9875
|
+
/**
|
|
9876
|
+
* The **`writable`** read-only property of the SerialPort interface returns a WritableStream for sending data to the device connected to the port. Chunks written to this stream must be instances of ArrayBuffer, TypedArray, or DataView. This property is non-null as long as the port is open and has not encountered a fatal error.
|
|
9877
|
+
*
|
|
9878
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SerialPort/writable)
|
|
9879
|
+
*/
|
|
9880
|
+
readonly writable: WritableStream | null;
|
|
9881
|
+
/**
|
|
9882
|
+
* The **`SerialPort.close()`** method of the SerialPort interface returns a Promise that resolves when the port closes.
|
|
9883
|
+
*
|
|
9884
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SerialPort/close)
|
|
9885
|
+
*/
|
|
9886
|
+
close(): Promise<void>;
|
|
9887
|
+
/**
|
|
9888
|
+
* The **`SerialPort.forget()`** method of the SerialPort interface returns a Promise that resolves when access to the serial port is revoked.
|
|
9889
|
+
*
|
|
9890
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SerialPort/forget)
|
|
9891
|
+
*/
|
|
9892
|
+
forget(): Promise<void>;
|
|
9893
|
+
/**
|
|
9894
|
+
* The **`getInfo()`** method of the SerialPort interface returns an object containing identifying information for the device available via the port.
|
|
9895
|
+
*
|
|
9896
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SerialPort/getInfo)
|
|
9897
|
+
*/
|
|
9898
|
+
getInfo(): SerialPortInfo;
|
|
9899
|
+
/**
|
|
9900
|
+
* The **`SerialPort.getSignals()`** method of the SerialPort interface returns a Promise that resolves with an object containing the current state of the port's control signals.
|
|
9901
|
+
*
|
|
9902
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SerialPort/getSignals)
|
|
9903
|
+
*/
|
|
9904
|
+
getSignals(): Promise<SerialInputSignals>;
|
|
9905
|
+
/**
|
|
9906
|
+
* The **`open()`** method of the SerialPort interface returns a Promise that resolves when the port is opened. By default the port is opened with 8 data bits, 1 stop bit and no parity checking. The baudRate parameter is required.
|
|
9907
|
+
*
|
|
9908
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SerialPort/open)
|
|
9909
|
+
*/
|
|
9910
|
+
open(options: SerialOptions): Promise<void>;
|
|
9911
|
+
/**
|
|
9912
|
+
* The **`setSignals()`** method of the SerialPort interface sets control signals on the port and returns a Promise that resolves when they are set.
|
|
9913
|
+
*
|
|
9914
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SerialPort/setSignals)
|
|
9915
|
+
*/
|
|
9916
|
+
setSignals(signals?: SerialOutputSignals): Promise<void>;
|
|
9917
|
+
addEventListener<K extends keyof SerialPortEventMap>(type: K, listener: (this: SerialPort, ev: SerialPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
9918
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
9919
|
+
removeEventListener<K extends keyof SerialPortEventMap>(type: K, listener: (this: SerialPort, ev: SerialPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
9920
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
9921
|
+
}
|
|
9922
|
+
|
|
9923
|
+
declare var SerialPort: {
|
|
9924
|
+
prototype: SerialPort;
|
|
9925
|
+
new(): SerialPort;
|
|
9926
|
+
};
|
|
9927
|
+
|
|
9658
9928
|
interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
|
|
9659
9929
|
"statechange": Event;
|
|
9660
9930
|
}
|
|
@@ -10441,7 +10711,7 @@ interface TransformStreamDefaultController<O = any> {
|
|
|
10441
10711
|
*
|
|
10442
10712
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue)
|
|
10443
10713
|
*/
|
|
10444
|
-
enqueue(chunk
|
|
10714
|
+
enqueue(chunk: O): void;
|
|
10445
10715
|
/**
|
|
10446
10716
|
* The **`error()`** method of the TransformStreamDefaultController interface errors both sides of the stream. Any further interactions with it will fail with the given error message, and any chunks in the queue will be discarded.
|
|
10447
10717
|
*
|
|
@@ -11209,13 +11479,13 @@ interface WEBGL_draw_buffers {
|
|
|
11209
11479
|
*/
|
|
11210
11480
|
interface WEBGL_lose_context {
|
|
11211
11481
|
/**
|
|
11212
|
-
* The **`
|
|
11482
|
+
* 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.
|
|
11213
11483
|
*
|
|
11214
11484
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext)
|
|
11215
11485
|
*/
|
|
11216
11486
|
loseContext(): void;
|
|
11217
11487
|
/**
|
|
11218
|
-
* The **`
|
|
11488
|
+
* 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.
|
|
11219
11489
|
*
|
|
11220
11490
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext)
|
|
11221
11491
|
*/
|
|
@@ -13615,6 +13885,12 @@ interface WebTransport {
|
|
|
13615
13885
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed)
|
|
13616
13886
|
*/
|
|
13617
13887
|
readonly closed: Promise<WebTransportCloseInfo>;
|
|
13888
|
+
/**
|
|
13889
|
+
* The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data.
|
|
13890
|
+
*
|
|
13891
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl)
|
|
13892
|
+
*/
|
|
13893
|
+
readonly congestionControl: WebTransportCongestionControl;
|
|
13618
13894
|
/**
|
|
13619
13895
|
* The **`datagrams`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams — unreliable data transmission.
|
|
13620
13896
|
*
|
|
@@ -13633,12 +13909,19 @@ interface WebTransport {
|
|
|
13633
13909
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams)
|
|
13634
13910
|
*/
|
|
13635
13911
|
readonly incomingUnidirectionalStreams: ReadableStream;
|
|
13912
|
+
readonly protocol: string;
|
|
13636
13913
|
/**
|
|
13637
13914
|
* The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use.
|
|
13638
13915
|
*
|
|
13639
13916
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready)
|
|
13640
13917
|
*/
|
|
13641
13918
|
readonly ready: Promise<void>;
|
|
13919
|
+
/**
|
|
13920
|
+
* The **`reliability`** read-only property of the WebTransport interface indicates whether the connection supports reliable transports only, or whether it also supports unreliable transports (such as UDP).
|
|
13921
|
+
*
|
|
13922
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability)
|
|
13923
|
+
*/
|
|
13924
|
+
readonly reliability: WebTransportReliabilityMode;
|
|
13642
13925
|
/**
|
|
13643
13926
|
* The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session.
|
|
13644
13927
|
*
|
|
@@ -13657,6 +13940,12 @@ interface WebTransport {
|
|
|
13657
13940
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream)
|
|
13658
13941
|
*/
|
|
13659
13942
|
createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
|
|
13943
|
+
/**
|
|
13944
|
+
* The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics.
|
|
13945
|
+
*
|
|
13946
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats)
|
|
13947
|
+
*/
|
|
13948
|
+
getStats(): Promise<WebTransportConnectionStats>;
|
|
13660
13949
|
}
|
|
13661
13950
|
|
|
13662
13951
|
declare var WebTransport: {
|
|
@@ -13772,6 +14061,52 @@ declare var WebTransportError: {
|
|
|
13772
14061
|
new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
|
|
13773
14062
|
};
|
|
13774
14063
|
|
|
14064
|
+
/**
|
|
14065
|
+
* The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream.
|
|
14066
|
+
* Available only in secure contexts.
|
|
14067
|
+
*
|
|
14068
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream)
|
|
14069
|
+
*/
|
|
14070
|
+
interface WebTransportReceiveStream extends ReadableStream {
|
|
14071
|
+
/**
|
|
14072
|
+
* The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream.
|
|
14073
|
+
*
|
|
14074
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats)
|
|
14075
|
+
*/
|
|
14076
|
+
getStats(): Promise<WebTransportReceiveStreamStats>;
|
|
14077
|
+
}
|
|
14078
|
+
|
|
14079
|
+
declare var WebTransportReceiveStream: {
|
|
14080
|
+
prototype: WebTransportReceiveStream;
|
|
14081
|
+
new(): WebTransportReceiveStream;
|
|
14082
|
+
};
|
|
14083
|
+
|
|
14084
|
+
/**
|
|
14085
|
+
* The **`WebTransportSendStream`** interface of the WebTransport API is a specialized WritableStream that is used to send outbound data in both unidirectional or bidirectional WebTransport streams.
|
|
14086
|
+
* Available only in secure contexts.
|
|
14087
|
+
*
|
|
14088
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream)
|
|
14089
|
+
*/
|
|
14090
|
+
interface WebTransportSendStream extends WritableStream {
|
|
14091
|
+
/**
|
|
14092
|
+
* The **`sendOrder`** property of the WebTransportSendStream interface indicates the send priority of this stream relative to other streams for which the value has been set.
|
|
14093
|
+
*
|
|
14094
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder)
|
|
14095
|
+
*/
|
|
14096
|
+
sendOrder: number;
|
|
14097
|
+
/**
|
|
14098
|
+
* The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream.
|
|
14099
|
+
*
|
|
14100
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats)
|
|
14101
|
+
*/
|
|
14102
|
+
getStats(): Promise<WebTransportSendStreamStats>;
|
|
14103
|
+
}
|
|
14104
|
+
|
|
14105
|
+
declare var WebTransportSendStream: {
|
|
14106
|
+
prototype: WebTransportSendStream;
|
|
14107
|
+
new(): WebTransportSendStream;
|
|
14108
|
+
};
|
|
14109
|
+
|
|
13775
14110
|
/**
|
|
13776
14111
|
* The **`WindowClient`** interface of the ServiceWorker API represents the scope of a service worker client that is a document in a browsing context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources.
|
|
13777
14112
|
*
|
|
@@ -14036,6 +14371,12 @@ interface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware, N
|
|
|
14036
14371
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/permissions)
|
|
14037
14372
|
*/
|
|
14038
14373
|
readonly permissions: Permissions;
|
|
14374
|
+
/**
|
|
14375
|
+
* The **`serial`** read-only property of the WorkerNavigator interface returns a Serial object which represents the entry point into the Web Serial API.
|
|
14376
|
+
*
|
|
14377
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/serial)
|
|
14378
|
+
*/
|
|
14379
|
+
readonly serial: Serial;
|
|
14039
14380
|
/**
|
|
14040
14381
|
* The **`serviceWorker`** read-only property of the WorkerNavigator interface returns the ServiceWorkerContainer object for the associated document, which provides access to registration, removal, upgrade, and communication with the ServiceWorker.
|
|
14041
14382
|
* Available only in secure contexts.
|
|
@@ -14159,7 +14500,7 @@ interface WritableStreamDefaultWriter<W = any> {
|
|
|
14159
14500
|
*
|
|
14160
14501
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write)
|
|
14161
14502
|
*/
|
|
14162
|
-
write(chunk
|
|
14503
|
+
write(chunk: W): Promise<void>;
|
|
14163
14504
|
}
|
|
14164
14505
|
|
|
14165
14506
|
declare var WritableStreamDefaultWriter: {
|
|
@@ -14354,6 +14695,47 @@ declare var XMLHttpRequestUpload: {
|
|
|
14354
14695
|
new(): XMLHttpRequestUpload;
|
|
14355
14696
|
};
|
|
14356
14697
|
|
|
14698
|
+
declare namespace GPUBufferUsage {
|
|
14699
|
+
const MAP_READ: 0x0001;
|
|
14700
|
+
const MAP_WRITE: 0x0002;
|
|
14701
|
+
const COPY_SRC: 0x0004;
|
|
14702
|
+
const COPY_DST: 0x0008;
|
|
14703
|
+
const INDEX: 0x0010;
|
|
14704
|
+
const VERTEX: 0x0020;
|
|
14705
|
+
const UNIFORM: 0x0040;
|
|
14706
|
+
const STORAGE: 0x0080;
|
|
14707
|
+
const INDIRECT: 0x0100;
|
|
14708
|
+
const QUERY_RESOLVE: 0x0200;
|
|
14709
|
+
}
|
|
14710
|
+
|
|
14711
|
+
declare namespace GPUColorWrite {
|
|
14712
|
+
const RED: 0x1;
|
|
14713
|
+
const GREEN: 0x2;
|
|
14714
|
+
const BLUE: 0x4;
|
|
14715
|
+
const ALPHA: 0x8;
|
|
14716
|
+
const ALL: 0xF;
|
|
14717
|
+
}
|
|
14718
|
+
|
|
14719
|
+
declare namespace GPUMapMode {
|
|
14720
|
+
const READ: 0x0001;
|
|
14721
|
+
const WRITE: 0x0002;
|
|
14722
|
+
}
|
|
14723
|
+
|
|
14724
|
+
declare namespace GPUShaderStage {
|
|
14725
|
+
const VERTEX: 0x1;
|
|
14726
|
+
const FRAGMENT: 0x2;
|
|
14727
|
+
const COMPUTE: 0x4;
|
|
14728
|
+
}
|
|
14729
|
+
|
|
14730
|
+
declare namespace GPUTextureUsage {
|
|
14731
|
+
const COPY_SRC: 0x01;
|
|
14732
|
+
const COPY_DST: 0x02;
|
|
14733
|
+
const TEXTURE_BINDING: 0x04;
|
|
14734
|
+
const STORAGE_BINDING: 0x08;
|
|
14735
|
+
const RENDER_ATTACHMENT: 0x10;
|
|
14736
|
+
const TRANSIENT_ATTACHMENT: 0x20;
|
|
14737
|
+
}
|
|
14738
|
+
|
|
14357
14739
|
declare namespace WebAssembly {
|
|
14358
14740
|
/** The **`WebAssembly.CompileError`** object indicates an error during WebAssembly decoding or validation. */
|
|
14359
14741
|
interface CompileError extends Error {
|
|
@@ -14402,7 +14784,13 @@ declare namespace WebAssembly {
|
|
|
14402
14784
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
|
|
14403
14785
|
*/
|
|
14404
14786
|
interface Global<T extends ValueType = ValueType> {
|
|
14787
|
+
/**
|
|
14788
|
+
* The **`value`** property of the WebAssembly.Global object prototype returns the value contained inside the global variable.
|
|
14789
|
+
*
|
|
14790
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global/value)
|
|
14791
|
+
*/
|
|
14405
14792
|
value: ValueTypeMap[T];
|
|
14793
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global/valueOf) */
|
|
14406
14794
|
valueOf(): ValueTypeMap[T];
|
|
14407
14795
|
}
|
|
14408
14796
|
|
|
@@ -14477,7 +14865,7 @@ declare namespace WebAssembly {
|
|
|
14477
14865
|
|
|
14478
14866
|
var Module: {
|
|
14479
14867
|
prototype: Module;
|
|
14480
|
-
new(bytes:
|
|
14868
|
+
new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module;
|
|
14481
14869
|
/**
|
|
14482
14870
|
* 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.
|
|
14483
14871
|
*
|
|
@@ -14628,16 +15016,16 @@ declare namespace WebAssembly {
|
|
|
14628
15016
|
type ValueType = keyof ValueTypeMap;
|
|
14629
15017
|
var JSTag: Tag;
|
|
14630
15018
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */
|
|
14631
|
-
function compile(bytes:
|
|
15019
|
+
function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
|
|
14632
15020
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
|
|
14633
15021
|
function compileStreaming(source: Response | PromiseLike<Response>, options?: WebAssemblyCompileOptions): Promise<Module>;
|
|
14634
15022
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */
|
|
14635
|
-
function instantiate(bytes:
|
|
15023
|
+
function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
|
|
14636
15024
|
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
|
|
14637
15025
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */
|
|
14638
15026
|
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
|
|
14639
15027
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
|
|
14640
|
-
function validate(bytes:
|
|
15028
|
+
function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean;
|
|
14641
15029
|
}
|
|
14642
15030
|
|
|
14643
15031
|
/** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */
|
|
@@ -14989,6 +15377,7 @@ type AlgorithmIdentifier = Algorithm | string;
|
|
|
14989
15377
|
type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView<ArrayBufferLike>;
|
|
14990
15378
|
type BigInteger = Uint8Array<ArrayBuffer>;
|
|
14991
15379
|
type BlobPart = BufferSource | Blob | string;
|
|
15380
|
+
type BluetoothServiceUUID = string | number;
|
|
14992
15381
|
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
|
|
14993
15382
|
type BufferSource = ArrayBufferView<ArrayBuffer> | ArrayBuffer;
|
|
14994
15383
|
type CSSKeywordish = string | CSSKeywordValue;
|
|
@@ -15086,13 +15475,14 @@ type ClientTypes = "all" | "sharedworker" | "window" | "worker";
|
|
|
15086
15475
|
type CodecState = "closed" | "configured" | "unconfigured";
|
|
15087
15476
|
type ColorGamut = "p3" | "rec2020" | "srgb";
|
|
15088
15477
|
type ColorSpaceConversion = "default" | "none";
|
|
15089
|
-
type CompressionFormat = "deflate" | "deflate-raw" | "gzip";
|
|
15478
|
+
type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip";
|
|
15090
15479
|
type CookieSameSite = "lax" | "none" | "strict";
|
|
15091
15480
|
type DocumentVisibilityState = "hidden" | "visible";
|
|
15092
15481
|
type EncodedAudioChunkType = "delta" | "key";
|
|
15093
15482
|
type EncodedVideoChunkType = "delta" | "key";
|
|
15094
15483
|
type EndingType = "native" | "transparent";
|
|
15095
15484
|
type FileSystemHandleKind = "directory" | "file";
|
|
15485
|
+
type FlowControlType = "hardware" | "none";
|
|
15096
15486
|
type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
15097
15487
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
15098
15488
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
@@ -15129,7 +15519,7 @@ type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
|
15129
15519
|
type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8";
|
|
15130
15520
|
type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
|
|
15131
15521
|
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
15132
|
-
type GPUVertexFormat = "float16" | "float16x2" | "float16x4" | "float32" | "float32x2" | "float32x3" | "float32x4" | "sint16" | "sint16x2" | "sint16x4" | "sint32" | "sint32x2" | "sint32x3" | "sint32x4" | "sint8" | "sint8x2" | "sint8x4" | "snorm16" | "snorm16x2" | "snorm16x4" | "snorm8" | "snorm8x2" | "snorm8x4" | "uint16" | "uint16x2" | "uint16x4" | "uint32" | "uint32x2" | "uint32x3" | "uint32x4" | "uint8" | "uint8x2" | "uint8x4" | "unorm10-10-10-2" | "unorm16" | "unorm16x2" | "unorm16x4" | "unorm8" | "unorm8x2" | "unorm8x4" | "unorm8x4-bgra";
|
|
15522
|
+
type GPUVertexFormat = "float16" | "float16x2" | "float16x4" | "float32" | "float32x2" | "float32x3" | "float32x4" | "sint16" | "sint16x2" | "sint16x4" | "sint32" | "sint32x2" | "sint32x3" | "sint32x4" | "sint8" | "sint8x2" | "sint8x4" | "snorm10-10-10-2" | "snorm16" | "snorm16x2" | "snorm16x4" | "snorm8" | "snorm8x2" | "snorm8x4" | "uint16" | "uint16x2" | "uint16x4" | "uint32" | "uint32x2" | "uint32x3" | "uint32x4" | "uint8" | "uint8x2" | "uint8x4" | "unorm10-10-10-2" | "unorm16" | "unorm16x2" | "unorm16x4" | "unorm8" | "unorm8x2" | "unorm8x4" | "unorm8x4-bgra";
|
|
15133
15523
|
type GPUVertexStepMode = "instance" | "vertex";
|
|
15134
15524
|
type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
|
|
15135
15525
|
type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software";
|
|
@@ -15153,6 +15543,7 @@ type NotificationDirection = "auto" | "ltr" | "rtl";
|
|
|
15153
15543
|
type NotificationPermission = "default" | "denied" | "granted";
|
|
15154
15544
|
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
|
|
15155
15545
|
type OpusBitstreamFormat = "ogg" | "opus";
|
|
15546
|
+
type ParityType = "even" | "none" | "odd";
|
|
15156
15547
|
type PermissionName = "camera" | "geolocation" | "microphone" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
|
|
15157
15548
|
type PermissionState = "denied" | "granted" | "prompt";
|
|
15158
15549
|
type PredefinedColorSpace = "display-p3" | "srgb";
|
|
@@ -15164,7 +15555,7 @@ type ReadableStreamType = "bytes";
|
|
|
15164
15555
|
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
|
|
15165
15556
|
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
|
|
15166
15557
|
type RequestCredentials = "include" | "omit" | "same-origin";
|
|
15167
|
-
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
|
|
15558
|
+
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "json" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
|
|
15168
15559
|
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
|
|
15169
15560
|
type RequestPriority = "auto" | "high" | "low";
|
|
15170
15561
|
type RequestRedirect = "error" | "follow" | "manual";
|
|
@@ -15183,6 +15574,7 @@ type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
|
|
|
15183
15574
|
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
|
15184
15575
|
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
|
|
15185
15576
|
type WebTransportErrorSource = "session" | "stream";
|
|
15577
|
+
type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable";
|
|
15186
15578
|
type WorkerType = "classic" | "module";
|
|
15187
15579
|
type WriteCommandType = "seek" | "truncate" | "write";
|
|
15188
15580
|
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|