@types/webworker 0.0.70 → 0.0.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.d.ts +113 -1
- package/package.json +1 -1
- package/ts5.5/index.d.ts +113 -1
- package/ts5.6/index.d.ts +113 -1
- package/ts5.9/index.d.ts +113 -1
package/README.md
CHANGED
|
@@ -45,4 +45,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
45
45
|
|
|
46
46
|
## Deploy Metadata
|
|
47
47
|
|
|
48
|
-
You can read what changed in version 0.0.
|
|
48
|
+
You can read what changed in version 0.0.72 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.72.
|
package/index.d.ts
CHANGED
|
@@ -1457,6 +1457,23 @@ interface WebTransportCloseInfo {
|
|
|
1457
1457
|
reason?: string;
|
|
1458
1458
|
}
|
|
1459
1459
|
|
|
1460
|
+
interface WebTransportConnectionStats {
|
|
1461
|
+
bytesReceived?: number;
|
|
1462
|
+
datagrams: WebTransportDatagramStats;
|
|
1463
|
+
minRtt?: DOMHighResTimeStamp;
|
|
1464
|
+
packetsLost?: number;
|
|
1465
|
+
packetsReceived?: number;
|
|
1466
|
+
packetsSent?: number;
|
|
1467
|
+
rttVariation?: DOMHighResTimeStamp;
|
|
1468
|
+
smoothedRtt?: DOMHighResTimeStamp;
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
interface WebTransportDatagramStats {
|
|
1472
|
+
droppedIncoming?: number;
|
|
1473
|
+
expiredOutgoing?: number;
|
|
1474
|
+
lostOutgoing?: number;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1460
1477
|
interface WebTransportErrorOptions {
|
|
1461
1478
|
source?: WebTransportErrorSource;
|
|
1462
1479
|
streamErrorCode?: number | null;
|
|
@@ -1475,6 +1492,11 @@ interface WebTransportOptions {
|
|
|
1475
1492
|
serverCertificateHashes?: WebTransportHash[];
|
|
1476
1493
|
}
|
|
1477
1494
|
|
|
1495
|
+
interface WebTransportReceiveStreamStats {
|
|
1496
|
+
bytesRead?: number;
|
|
1497
|
+
bytesReceived?: number;
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1478
1500
|
interface WebTransportSendOptions {
|
|
1479
1501
|
sendOrder?: number;
|
|
1480
1502
|
}
|
|
@@ -1482,6 +1504,12 @@ interface WebTransportSendOptions {
|
|
|
1482
1504
|
interface WebTransportSendStreamOptions extends WebTransportSendOptions {
|
|
1483
1505
|
}
|
|
1484
1506
|
|
|
1507
|
+
interface WebTransportSendStreamStats {
|
|
1508
|
+
bytesAcknowledged?: number;
|
|
1509
|
+
bytesSent?: number;
|
|
1510
|
+
bytesWritten?: number;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1485
1513
|
interface WorkerOptions {
|
|
1486
1514
|
credentials?: RequestCredentials;
|
|
1487
1515
|
name?: string;
|
|
@@ -8403,6 +8431,12 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
8403
8431
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize)
|
|
8404
8432
|
*/
|
|
8405
8433
|
readonly decodedBodySize: number;
|
|
8434
|
+
/**
|
|
8435
|
+
* The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch.
|
|
8436
|
+
*
|
|
8437
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType)
|
|
8438
|
+
*/
|
|
8439
|
+
readonly deliveryType: string;
|
|
8406
8440
|
/**
|
|
8407
8441
|
* The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource.
|
|
8408
8442
|
*
|
|
@@ -8427,6 +8461,18 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
8427
8461
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart)
|
|
8428
8462
|
*/
|
|
8429
8463
|
readonly fetchStart: DOMHighResTimeStamp;
|
|
8464
|
+
/**
|
|
8465
|
+
* 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.
|
|
8466
|
+
*
|
|
8467
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart)
|
|
8468
|
+
*/
|
|
8469
|
+
readonly finalResponseHeadersStart: DOMHighResTimeStamp;
|
|
8470
|
+
/**
|
|
8471
|
+
* 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.
|
|
8472
|
+
*
|
|
8473
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart)
|
|
8474
|
+
*/
|
|
8475
|
+
readonly firstInterimResponseStart: DOMHighResTimeStamp;
|
|
8430
8476
|
/**
|
|
8431
8477
|
* The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load.
|
|
8432
8478
|
*
|
|
@@ -9279,7 +9325,7 @@ interface ReadableStreamDefaultController<R = any> {
|
|
|
9279
9325
|
*
|
|
9280
9326
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue)
|
|
9281
9327
|
*/
|
|
9282
|
-
enqueue(chunk
|
|
9328
|
+
enqueue(chunk: R): void;
|
|
9283
9329
|
/**
|
|
9284
9330
|
* The **`error()`** method of the ReadableStreamDefaultController interface causes any future interactions with the associated stream to error.
|
|
9285
9331
|
*
|
|
@@ -13602,6 +13648,12 @@ interface WebTransport {
|
|
|
13602
13648
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed)
|
|
13603
13649
|
*/
|
|
13604
13650
|
readonly closed: Promise<WebTransportCloseInfo>;
|
|
13651
|
+
/**
|
|
13652
|
+
* The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data.
|
|
13653
|
+
*
|
|
13654
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl)
|
|
13655
|
+
*/
|
|
13656
|
+
readonly congestionControl: WebTransportCongestionControl;
|
|
13605
13657
|
/**
|
|
13606
13658
|
* 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.
|
|
13607
13659
|
*
|
|
@@ -13620,12 +13672,19 @@ interface WebTransport {
|
|
|
13620
13672
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams)
|
|
13621
13673
|
*/
|
|
13622
13674
|
readonly incomingUnidirectionalStreams: ReadableStream;
|
|
13675
|
+
readonly protocol: string;
|
|
13623
13676
|
/**
|
|
13624
13677
|
* The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use.
|
|
13625
13678
|
*
|
|
13626
13679
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready)
|
|
13627
13680
|
*/
|
|
13628
13681
|
readonly ready: Promise<void>;
|
|
13682
|
+
/**
|
|
13683
|
+
* 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).
|
|
13684
|
+
*
|
|
13685
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability)
|
|
13686
|
+
*/
|
|
13687
|
+
readonly reliability: WebTransportReliabilityMode;
|
|
13629
13688
|
/**
|
|
13630
13689
|
* The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session.
|
|
13631
13690
|
*
|
|
@@ -13644,6 +13703,12 @@ interface WebTransport {
|
|
|
13644
13703
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream)
|
|
13645
13704
|
*/
|
|
13646
13705
|
createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
|
|
13706
|
+
/**
|
|
13707
|
+
* The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics.
|
|
13708
|
+
*
|
|
13709
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats)
|
|
13710
|
+
*/
|
|
13711
|
+
getStats(): Promise<WebTransportConnectionStats>;
|
|
13647
13712
|
}
|
|
13648
13713
|
|
|
13649
13714
|
declare var WebTransport: {
|
|
@@ -13759,6 +13824,52 @@ declare var WebTransportError: {
|
|
|
13759
13824
|
new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
|
|
13760
13825
|
};
|
|
13761
13826
|
|
|
13827
|
+
/**
|
|
13828
|
+
* The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream.
|
|
13829
|
+
* Available only in secure contexts.
|
|
13830
|
+
*
|
|
13831
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream)
|
|
13832
|
+
*/
|
|
13833
|
+
interface WebTransportReceiveStream extends ReadableStream {
|
|
13834
|
+
/**
|
|
13835
|
+
* The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream.
|
|
13836
|
+
*
|
|
13837
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats)
|
|
13838
|
+
*/
|
|
13839
|
+
getStats(): Promise<WebTransportReceiveStreamStats>;
|
|
13840
|
+
}
|
|
13841
|
+
|
|
13842
|
+
declare var WebTransportReceiveStream: {
|
|
13843
|
+
prototype: WebTransportReceiveStream;
|
|
13844
|
+
new(): WebTransportReceiveStream;
|
|
13845
|
+
};
|
|
13846
|
+
|
|
13847
|
+
/**
|
|
13848
|
+
* 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.
|
|
13849
|
+
* Available only in secure contexts.
|
|
13850
|
+
*
|
|
13851
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream)
|
|
13852
|
+
*/
|
|
13853
|
+
interface WebTransportSendStream extends WritableStream {
|
|
13854
|
+
/**
|
|
13855
|
+
* 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.
|
|
13856
|
+
*
|
|
13857
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder)
|
|
13858
|
+
*/
|
|
13859
|
+
sendOrder: number;
|
|
13860
|
+
/**
|
|
13861
|
+
* The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream.
|
|
13862
|
+
*
|
|
13863
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats)
|
|
13864
|
+
*/
|
|
13865
|
+
getStats(): Promise<WebTransportSendStreamStats>;
|
|
13866
|
+
}
|
|
13867
|
+
|
|
13868
|
+
declare var WebTransportSendStream: {
|
|
13869
|
+
prototype: WebTransportSendStream;
|
|
13870
|
+
new(): WebTransportSendStream;
|
|
13871
|
+
};
|
|
13872
|
+
|
|
13762
13873
|
/**
|
|
13763
13874
|
* 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.
|
|
13764
13875
|
*
|
|
@@ -15170,6 +15281,7 @@ type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
|
|
|
15170
15281
|
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
|
15171
15282
|
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
|
|
15172
15283
|
type WebTransportErrorSource = "session" | "stream";
|
|
15284
|
+
type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable";
|
|
15173
15285
|
type WorkerType = "classic" | "module";
|
|
15174
15286
|
type WriteCommandType = "seek" | "truncate" | "write";
|
|
15175
15287
|
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -1454,6 +1454,23 @@ interface WebTransportCloseInfo {
|
|
|
1454
1454
|
reason?: string;
|
|
1455
1455
|
}
|
|
1456
1456
|
|
|
1457
|
+
interface WebTransportConnectionStats {
|
|
1458
|
+
bytesReceived?: number;
|
|
1459
|
+
datagrams: WebTransportDatagramStats;
|
|
1460
|
+
minRtt?: DOMHighResTimeStamp;
|
|
1461
|
+
packetsLost?: number;
|
|
1462
|
+
packetsReceived?: number;
|
|
1463
|
+
packetsSent?: number;
|
|
1464
|
+
rttVariation?: DOMHighResTimeStamp;
|
|
1465
|
+
smoothedRtt?: DOMHighResTimeStamp;
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
interface WebTransportDatagramStats {
|
|
1469
|
+
droppedIncoming?: number;
|
|
1470
|
+
expiredOutgoing?: number;
|
|
1471
|
+
lostOutgoing?: number;
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1457
1474
|
interface WebTransportErrorOptions {
|
|
1458
1475
|
source?: WebTransportErrorSource;
|
|
1459
1476
|
streamErrorCode?: number | null;
|
|
@@ -1472,6 +1489,11 @@ interface WebTransportOptions {
|
|
|
1472
1489
|
serverCertificateHashes?: WebTransportHash[];
|
|
1473
1490
|
}
|
|
1474
1491
|
|
|
1492
|
+
interface WebTransportReceiveStreamStats {
|
|
1493
|
+
bytesRead?: number;
|
|
1494
|
+
bytesReceived?: number;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1475
1497
|
interface WebTransportSendOptions {
|
|
1476
1498
|
sendOrder?: number;
|
|
1477
1499
|
}
|
|
@@ -1479,6 +1501,12 @@ interface WebTransportSendOptions {
|
|
|
1479
1501
|
interface WebTransportSendStreamOptions extends WebTransportSendOptions {
|
|
1480
1502
|
}
|
|
1481
1503
|
|
|
1504
|
+
interface WebTransportSendStreamStats {
|
|
1505
|
+
bytesAcknowledged?: number;
|
|
1506
|
+
bytesSent?: number;
|
|
1507
|
+
bytesWritten?: number;
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1482
1510
|
interface WorkerOptions {
|
|
1483
1511
|
credentials?: RequestCredentials;
|
|
1484
1512
|
name?: string;
|
|
@@ -8400,6 +8428,12 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
8400
8428
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize)
|
|
8401
8429
|
*/
|
|
8402
8430
|
readonly decodedBodySize: number;
|
|
8431
|
+
/**
|
|
8432
|
+
* The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch.
|
|
8433
|
+
*
|
|
8434
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType)
|
|
8435
|
+
*/
|
|
8436
|
+
readonly deliveryType: string;
|
|
8403
8437
|
/**
|
|
8404
8438
|
* The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource.
|
|
8405
8439
|
*
|
|
@@ -8424,6 +8458,18 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
8424
8458
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart)
|
|
8425
8459
|
*/
|
|
8426
8460
|
readonly fetchStart: DOMHighResTimeStamp;
|
|
8461
|
+
/**
|
|
8462
|
+
* 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.
|
|
8463
|
+
*
|
|
8464
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart)
|
|
8465
|
+
*/
|
|
8466
|
+
readonly finalResponseHeadersStart: DOMHighResTimeStamp;
|
|
8467
|
+
/**
|
|
8468
|
+
* 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.
|
|
8469
|
+
*
|
|
8470
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart)
|
|
8471
|
+
*/
|
|
8472
|
+
readonly firstInterimResponseStart: DOMHighResTimeStamp;
|
|
8427
8473
|
/**
|
|
8428
8474
|
* The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load.
|
|
8429
8475
|
*
|
|
@@ -9276,7 +9322,7 @@ interface ReadableStreamDefaultController<R = any> {
|
|
|
9276
9322
|
*
|
|
9277
9323
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue)
|
|
9278
9324
|
*/
|
|
9279
|
-
enqueue(chunk
|
|
9325
|
+
enqueue(chunk: R): void;
|
|
9280
9326
|
/**
|
|
9281
9327
|
* The **`error()`** method of the ReadableStreamDefaultController interface causes any future interactions with the associated stream to error.
|
|
9282
9328
|
*
|
|
@@ -13599,6 +13645,12 @@ interface WebTransport {
|
|
|
13599
13645
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed)
|
|
13600
13646
|
*/
|
|
13601
13647
|
readonly closed: Promise<WebTransportCloseInfo>;
|
|
13648
|
+
/**
|
|
13649
|
+
* The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data.
|
|
13650
|
+
*
|
|
13651
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl)
|
|
13652
|
+
*/
|
|
13653
|
+
readonly congestionControl: WebTransportCongestionControl;
|
|
13602
13654
|
/**
|
|
13603
13655
|
* 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.
|
|
13604
13656
|
*
|
|
@@ -13617,12 +13669,19 @@ interface WebTransport {
|
|
|
13617
13669
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams)
|
|
13618
13670
|
*/
|
|
13619
13671
|
readonly incomingUnidirectionalStreams: ReadableStream;
|
|
13672
|
+
readonly protocol: string;
|
|
13620
13673
|
/**
|
|
13621
13674
|
* The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use.
|
|
13622
13675
|
*
|
|
13623
13676
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready)
|
|
13624
13677
|
*/
|
|
13625
13678
|
readonly ready: Promise<void>;
|
|
13679
|
+
/**
|
|
13680
|
+
* 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).
|
|
13681
|
+
*
|
|
13682
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability)
|
|
13683
|
+
*/
|
|
13684
|
+
readonly reliability: WebTransportReliabilityMode;
|
|
13626
13685
|
/**
|
|
13627
13686
|
* The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session.
|
|
13628
13687
|
*
|
|
@@ -13641,6 +13700,12 @@ interface WebTransport {
|
|
|
13641
13700
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream)
|
|
13642
13701
|
*/
|
|
13643
13702
|
createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
|
|
13703
|
+
/**
|
|
13704
|
+
* The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics.
|
|
13705
|
+
*
|
|
13706
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats)
|
|
13707
|
+
*/
|
|
13708
|
+
getStats(): Promise<WebTransportConnectionStats>;
|
|
13644
13709
|
}
|
|
13645
13710
|
|
|
13646
13711
|
declare var WebTransport: {
|
|
@@ -13756,6 +13821,52 @@ declare var WebTransportError: {
|
|
|
13756
13821
|
new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
|
|
13757
13822
|
};
|
|
13758
13823
|
|
|
13824
|
+
/**
|
|
13825
|
+
* The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream.
|
|
13826
|
+
* Available only in secure contexts.
|
|
13827
|
+
*
|
|
13828
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream)
|
|
13829
|
+
*/
|
|
13830
|
+
interface WebTransportReceiveStream extends ReadableStream {
|
|
13831
|
+
/**
|
|
13832
|
+
* The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream.
|
|
13833
|
+
*
|
|
13834
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats)
|
|
13835
|
+
*/
|
|
13836
|
+
getStats(): Promise<WebTransportReceiveStreamStats>;
|
|
13837
|
+
}
|
|
13838
|
+
|
|
13839
|
+
declare var WebTransportReceiveStream: {
|
|
13840
|
+
prototype: WebTransportReceiveStream;
|
|
13841
|
+
new(): WebTransportReceiveStream;
|
|
13842
|
+
};
|
|
13843
|
+
|
|
13844
|
+
/**
|
|
13845
|
+
* 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.
|
|
13846
|
+
* Available only in secure contexts.
|
|
13847
|
+
*
|
|
13848
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream)
|
|
13849
|
+
*/
|
|
13850
|
+
interface WebTransportSendStream extends WritableStream {
|
|
13851
|
+
/**
|
|
13852
|
+
* 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.
|
|
13853
|
+
*
|
|
13854
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder)
|
|
13855
|
+
*/
|
|
13856
|
+
sendOrder: number;
|
|
13857
|
+
/**
|
|
13858
|
+
* The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream.
|
|
13859
|
+
*
|
|
13860
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats)
|
|
13861
|
+
*/
|
|
13862
|
+
getStats(): Promise<WebTransportSendStreamStats>;
|
|
13863
|
+
}
|
|
13864
|
+
|
|
13865
|
+
declare var WebTransportSendStream: {
|
|
13866
|
+
prototype: WebTransportSendStream;
|
|
13867
|
+
new(): WebTransportSendStream;
|
|
13868
|
+
};
|
|
13869
|
+
|
|
13759
13870
|
/**
|
|
13760
13871
|
* 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.
|
|
13761
13872
|
*
|
|
@@ -15167,6 +15278,7 @@ type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
|
|
|
15167
15278
|
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
|
15168
15279
|
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
|
|
15169
15280
|
type WebTransportErrorSource = "session" | "stream";
|
|
15281
|
+
type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable";
|
|
15170
15282
|
type WorkerType = "classic" | "module";
|
|
15171
15283
|
type WriteCommandType = "seek" | "truncate" | "write";
|
|
15172
15284
|
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -1454,6 +1454,23 @@ interface WebTransportCloseInfo {
|
|
|
1454
1454
|
reason?: string;
|
|
1455
1455
|
}
|
|
1456
1456
|
|
|
1457
|
+
interface WebTransportConnectionStats {
|
|
1458
|
+
bytesReceived?: number;
|
|
1459
|
+
datagrams: WebTransportDatagramStats;
|
|
1460
|
+
minRtt?: DOMHighResTimeStamp;
|
|
1461
|
+
packetsLost?: number;
|
|
1462
|
+
packetsReceived?: number;
|
|
1463
|
+
packetsSent?: number;
|
|
1464
|
+
rttVariation?: DOMHighResTimeStamp;
|
|
1465
|
+
smoothedRtt?: DOMHighResTimeStamp;
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
interface WebTransportDatagramStats {
|
|
1469
|
+
droppedIncoming?: number;
|
|
1470
|
+
expiredOutgoing?: number;
|
|
1471
|
+
lostOutgoing?: number;
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1457
1474
|
interface WebTransportErrorOptions {
|
|
1458
1475
|
source?: WebTransportErrorSource;
|
|
1459
1476
|
streamErrorCode?: number | null;
|
|
@@ -1472,6 +1489,11 @@ interface WebTransportOptions {
|
|
|
1472
1489
|
serverCertificateHashes?: WebTransportHash[];
|
|
1473
1490
|
}
|
|
1474
1491
|
|
|
1492
|
+
interface WebTransportReceiveStreamStats {
|
|
1493
|
+
bytesRead?: number;
|
|
1494
|
+
bytesReceived?: number;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1475
1497
|
interface WebTransportSendOptions {
|
|
1476
1498
|
sendOrder?: number;
|
|
1477
1499
|
}
|
|
@@ -1479,6 +1501,12 @@ interface WebTransportSendOptions {
|
|
|
1479
1501
|
interface WebTransportSendStreamOptions extends WebTransportSendOptions {
|
|
1480
1502
|
}
|
|
1481
1503
|
|
|
1504
|
+
interface WebTransportSendStreamStats {
|
|
1505
|
+
bytesAcknowledged?: number;
|
|
1506
|
+
bytesSent?: number;
|
|
1507
|
+
bytesWritten?: number;
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1482
1510
|
interface WorkerOptions {
|
|
1483
1511
|
credentials?: RequestCredentials;
|
|
1484
1512
|
name?: string;
|
|
@@ -8400,6 +8428,12 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
8400
8428
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize)
|
|
8401
8429
|
*/
|
|
8402
8430
|
readonly decodedBodySize: number;
|
|
8431
|
+
/**
|
|
8432
|
+
* The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch.
|
|
8433
|
+
*
|
|
8434
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType)
|
|
8435
|
+
*/
|
|
8436
|
+
readonly deliveryType: string;
|
|
8403
8437
|
/**
|
|
8404
8438
|
* The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource.
|
|
8405
8439
|
*
|
|
@@ -8424,6 +8458,18 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
8424
8458
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart)
|
|
8425
8459
|
*/
|
|
8426
8460
|
readonly fetchStart: DOMHighResTimeStamp;
|
|
8461
|
+
/**
|
|
8462
|
+
* 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.
|
|
8463
|
+
*
|
|
8464
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart)
|
|
8465
|
+
*/
|
|
8466
|
+
readonly finalResponseHeadersStart: DOMHighResTimeStamp;
|
|
8467
|
+
/**
|
|
8468
|
+
* 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.
|
|
8469
|
+
*
|
|
8470
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart)
|
|
8471
|
+
*/
|
|
8472
|
+
readonly firstInterimResponseStart: DOMHighResTimeStamp;
|
|
8427
8473
|
/**
|
|
8428
8474
|
* The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load.
|
|
8429
8475
|
*
|
|
@@ -9276,7 +9322,7 @@ interface ReadableStreamDefaultController<R = any> {
|
|
|
9276
9322
|
*
|
|
9277
9323
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue)
|
|
9278
9324
|
*/
|
|
9279
|
-
enqueue(chunk
|
|
9325
|
+
enqueue(chunk: R): void;
|
|
9280
9326
|
/**
|
|
9281
9327
|
* The **`error()`** method of the ReadableStreamDefaultController interface causes any future interactions with the associated stream to error.
|
|
9282
9328
|
*
|
|
@@ -13599,6 +13645,12 @@ interface WebTransport {
|
|
|
13599
13645
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed)
|
|
13600
13646
|
*/
|
|
13601
13647
|
readonly closed: Promise<WebTransportCloseInfo>;
|
|
13648
|
+
/**
|
|
13649
|
+
* The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data.
|
|
13650
|
+
*
|
|
13651
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl)
|
|
13652
|
+
*/
|
|
13653
|
+
readonly congestionControl: WebTransportCongestionControl;
|
|
13602
13654
|
/**
|
|
13603
13655
|
* 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.
|
|
13604
13656
|
*
|
|
@@ -13617,12 +13669,19 @@ interface WebTransport {
|
|
|
13617
13669
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams)
|
|
13618
13670
|
*/
|
|
13619
13671
|
readonly incomingUnidirectionalStreams: ReadableStream;
|
|
13672
|
+
readonly protocol: string;
|
|
13620
13673
|
/**
|
|
13621
13674
|
* The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use.
|
|
13622
13675
|
*
|
|
13623
13676
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready)
|
|
13624
13677
|
*/
|
|
13625
13678
|
readonly ready: Promise<void>;
|
|
13679
|
+
/**
|
|
13680
|
+
* 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).
|
|
13681
|
+
*
|
|
13682
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability)
|
|
13683
|
+
*/
|
|
13684
|
+
readonly reliability: WebTransportReliabilityMode;
|
|
13626
13685
|
/**
|
|
13627
13686
|
* The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session.
|
|
13628
13687
|
*
|
|
@@ -13641,6 +13700,12 @@ interface WebTransport {
|
|
|
13641
13700
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream)
|
|
13642
13701
|
*/
|
|
13643
13702
|
createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
|
|
13703
|
+
/**
|
|
13704
|
+
* The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics.
|
|
13705
|
+
*
|
|
13706
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats)
|
|
13707
|
+
*/
|
|
13708
|
+
getStats(): Promise<WebTransportConnectionStats>;
|
|
13644
13709
|
}
|
|
13645
13710
|
|
|
13646
13711
|
declare var WebTransport: {
|
|
@@ -13756,6 +13821,52 @@ declare var WebTransportError: {
|
|
|
13756
13821
|
new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
|
|
13757
13822
|
};
|
|
13758
13823
|
|
|
13824
|
+
/**
|
|
13825
|
+
* The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream.
|
|
13826
|
+
* Available only in secure contexts.
|
|
13827
|
+
*
|
|
13828
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream)
|
|
13829
|
+
*/
|
|
13830
|
+
interface WebTransportReceiveStream extends ReadableStream {
|
|
13831
|
+
/**
|
|
13832
|
+
* The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream.
|
|
13833
|
+
*
|
|
13834
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats)
|
|
13835
|
+
*/
|
|
13836
|
+
getStats(): Promise<WebTransportReceiveStreamStats>;
|
|
13837
|
+
}
|
|
13838
|
+
|
|
13839
|
+
declare var WebTransportReceiveStream: {
|
|
13840
|
+
prototype: WebTransportReceiveStream;
|
|
13841
|
+
new(): WebTransportReceiveStream;
|
|
13842
|
+
};
|
|
13843
|
+
|
|
13844
|
+
/**
|
|
13845
|
+
* 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.
|
|
13846
|
+
* Available only in secure contexts.
|
|
13847
|
+
*
|
|
13848
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream)
|
|
13849
|
+
*/
|
|
13850
|
+
interface WebTransportSendStream extends WritableStream {
|
|
13851
|
+
/**
|
|
13852
|
+
* 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.
|
|
13853
|
+
*
|
|
13854
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder)
|
|
13855
|
+
*/
|
|
13856
|
+
sendOrder: number;
|
|
13857
|
+
/**
|
|
13858
|
+
* The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream.
|
|
13859
|
+
*
|
|
13860
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats)
|
|
13861
|
+
*/
|
|
13862
|
+
getStats(): Promise<WebTransportSendStreamStats>;
|
|
13863
|
+
}
|
|
13864
|
+
|
|
13865
|
+
declare var WebTransportSendStream: {
|
|
13866
|
+
prototype: WebTransportSendStream;
|
|
13867
|
+
new(): WebTransportSendStream;
|
|
13868
|
+
};
|
|
13869
|
+
|
|
13759
13870
|
/**
|
|
13760
13871
|
* 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.
|
|
13761
13872
|
*
|
|
@@ -15167,6 +15278,7 @@ type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
|
|
|
15167
15278
|
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
|
15168
15279
|
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
|
|
15169
15280
|
type WebTransportErrorSource = "session" | "stream";
|
|
15281
|
+
type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable";
|
|
15170
15282
|
type WorkerType = "classic" | "module";
|
|
15171
15283
|
type WriteCommandType = "seek" | "truncate" | "write";
|
|
15172
15284
|
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -1454,6 +1454,23 @@ interface WebTransportCloseInfo {
|
|
|
1454
1454
|
reason?: string;
|
|
1455
1455
|
}
|
|
1456
1456
|
|
|
1457
|
+
interface WebTransportConnectionStats {
|
|
1458
|
+
bytesReceived?: number;
|
|
1459
|
+
datagrams: WebTransportDatagramStats;
|
|
1460
|
+
minRtt?: DOMHighResTimeStamp;
|
|
1461
|
+
packetsLost?: number;
|
|
1462
|
+
packetsReceived?: number;
|
|
1463
|
+
packetsSent?: number;
|
|
1464
|
+
rttVariation?: DOMHighResTimeStamp;
|
|
1465
|
+
smoothedRtt?: DOMHighResTimeStamp;
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
interface WebTransportDatagramStats {
|
|
1469
|
+
droppedIncoming?: number;
|
|
1470
|
+
expiredOutgoing?: number;
|
|
1471
|
+
lostOutgoing?: number;
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1457
1474
|
interface WebTransportErrorOptions {
|
|
1458
1475
|
source?: WebTransportErrorSource;
|
|
1459
1476
|
streamErrorCode?: number | null;
|
|
@@ -1472,6 +1489,11 @@ interface WebTransportOptions {
|
|
|
1472
1489
|
serverCertificateHashes?: WebTransportHash[];
|
|
1473
1490
|
}
|
|
1474
1491
|
|
|
1492
|
+
interface WebTransportReceiveStreamStats {
|
|
1493
|
+
bytesRead?: number;
|
|
1494
|
+
bytesReceived?: number;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1475
1497
|
interface WebTransportSendOptions {
|
|
1476
1498
|
sendOrder?: number;
|
|
1477
1499
|
}
|
|
@@ -1479,6 +1501,12 @@ interface WebTransportSendOptions {
|
|
|
1479
1501
|
interface WebTransportSendStreamOptions extends WebTransportSendOptions {
|
|
1480
1502
|
}
|
|
1481
1503
|
|
|
1504
|
+
interface WebTransportSendStreamStats {
|
|
1505
|
+
bytesAcknowledged?: number;
|
|
1506
|
+
bytesSent?: number;
|
|
1507
|
+
bytesWritten?: number;
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1482
1510
|
interface WorkerOptions {
|
|
1483
1511
|
credentials?: RequestCredentials;
|
|
1484
1512
|
name?: string;
|
|
@@ -8400,6 +8428,12 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
8400
8428
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize)
|
|
8401
8429
|
*/
|
|
8402
8430
|
readonly decodedBodySize: number;
|
|
8431
|
+
/**
|
|
8432
|
+
* The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch.
|
|
8433
|
+
*
|
|
8434
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType)
|
|
8435
|
+
*/
|
|
8436
|
+
readonly deliveryType: string;
|
|
8403
8437
|
/**
|
|
8404
8438
|
* The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource.
|
|
8405
8439
|
*
|
|
@@ -8424,6 +8458,18 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
8424
8458
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart)
|
|
8425
8459
|
*/
|
|
8426
8460
|
readonly fetchStart: DOMHighResTimeStamp;
|
|
8461
|
+
/**
|
|
8462
|
+
* 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.
|
|
8463
|
+
*
|
|
8464
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart)
|
|
8465
|
+
*/
|
|
8466
|
+
readonly finalResponseHeadersStart: DOMHighResTimeStamp;
|
|
8467
|
+
/**
|
|
8468
|
+
* 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.
|
|
8469
|
+
*
|
|
8470
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart)
|
|
8471
|
+
*/
|
|
8472
|
+
readonly firstInterimResponseStart: DOMHighResTimeStamp;
|
|
8427
8473
|
/**
|
|
8428
8474
|
* The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load.
|
|
8429
8475
|
*
|
|
@@ -9276,7 +9322,7 @@ interface ReadableStreamDefaultController<R = any> {
|
|
|
9276
9322
|
*
|
|
9277
9323
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue)
|
|
9278
9324
|
*/
|
|
9279
|
-
enqueue(chunk
|
|
9325
|
+
enqueue(chunk: R): void;
|
|
9280
9326
|
/**
|
|
9281
9327
|
* The **`error()`** method of the ReadableStreamDefaultController interface causes any future interactions with the associated stream to error.
|
|
9282
9328
|
*
|
|
@@ -13599,6 +13645,12 @@ interface WebTransport {
|
|
|
13599
13645
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed)
|
|
13600
13646
|
*/
|
|
13601
13647
|
readonly closed: Promise<WebTransportCloseInfo>;
|
|
13648
|
+
/**
|
|
13649
|
+
* The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data.
|
|
13650
|
+
*
|
|
13651
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl)
|
|
13652
|
+
*/
|
|
13653
|
+
readonly congestionControl: WebTransportCongestionControl;
|
|
13602
13654
|
/**
|
|
13603
13655
|
* 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.
|
|
13604
13656
|
*
|
|
@@ -13617,12 +13669,19 @@ interface WebTransport {
|
|
|
13617
13669
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams)
|
|
13618
13670
|
*/
|
|
13619
13671
|
readonly incomingUnidirectionalStreams: ReadableStream;
|
|
13672
|
+
readonly protocol: string;
|
|
13620
13673
|
/**
|
|
13621
13674
|
* The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use.
|
|
13622
13675
|
*
|
|
13623
13676
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready)
|
|
13624
13677
|
*/
|
|
13625
13678
|
readonly ready: Promise<void>;
|
|
13679
|
+
/**
|
|
13680
|
+
* 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).
|
|
13681
|
+
*
|
|
13682
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability)
|
|
13683
|
+
*/
|
|
13684
|
+
readonly reliability: WebTransportReliabilityMode;
|
|
13626
13685
|
/**
|
|
13627
13686
|
* The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session.
|
|
13628
13687
|
*
|
|
@@ -13641,6 +13700,12 @@ interface WebTransport {
|
|
|
13641
13700
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream)
|
|
13642
13701
|
*/
|
|
13643
13702
|
createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
|
|
13703
|
+
/**
|
|
13704
|
+
* The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics.
|
|
13705
|
+
*
|
|
13706
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats)
|
|
13707
|
+
*/
|
|
13708
|
+
getStats(): Promise<WebTransportConnectionStats>;
|
|
13644
13709
|
}
|
|
13645
13710
|
|
|
13646
13711
|
declare var WebTransport: {
|
|
@@ -13756,6 +13821,52 @@ declare var WebTransportError: {
|
|
|
13756
13821
|
new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
|
|
13757
13822
|
};
|
|
13758
13823
|
|
|
13824
|
+
/**
|
|
13825
|
+
* The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream.
|
|
13826
|
+
* Available only in secure contexts.
|
|
13827
|
+
*
|
|
13828
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream)
|
|
13829
|
+
*/
|
|
13830
|
+
interface WebTransportReceiveStream extends ReadableStream {
|
|
13831
|
+
/**
|
|
13832
|
+
* The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream.
|
|
13833
|
+
*
|
|
13834
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats)
|
|
13835
|
+
*/
|
|
13836
|
+
getStats(): Promise<WebTransportReceiveStreamStats>;
|
|
13837
|
+
}
|
|
13838
|
+
|
|
13839
|
+
declare var WebTransportReceiveStream: {
|
|
13840
|
+
prototype: WebTransportReceiveStream;
|
|
13841
|
+
new(): WebTransportReceiveStream;
|
|
13842
|
+
};
|
|
13843
|
+
|
|
13844
|
+
/**
|
|
13845
|
+
* 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.
|
|
13846
|
+
* Available only in secure contexts.
|
|
13847
|
+
*
|
|
13848
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream)
|
|
13849
|
+
*/
|
|
13850
|
+
interface WebTransportSendStream extends WritableStream {
|
|
13851
|
+
/**
|
|
13852
|
+
* 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.
|
|
13853
|
+
*
|
|
13854
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder)
|
|
13855
|
+
*/
|
|
13856
|
+
sendOrder: number;
|
|
13857
|
+
/**
|
|
13858
|
+
* The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream.
|
|
13859
|
+
*
|
|
13860
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats)
|
|
13861
|
+
*/
|
|
13862
|
+
getStats(): Promise<WebTransportSendStreamStats>;
|
|
13863
|
+
}
|
|
13864
|
+
|
|
13865
|
+
declare var WebTransportSendStream: {
|
|
13866
|
+
prototype: WebTransportSendStream;
|
|
13867
|
+
new(): WebTransportSendStream;
|
|
13868
|
+
};
|
|
13869
|
+
|
|
13759
13870
|
/**
|
|
13760
13871
|
* 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.
|
|
13761
13872
|
*
|
|
@@ -15167,6 +15278,7 @@ type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
|
|
|
15167
15278
|
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
|
15168
15279
|
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
|
|
15169
15280
|
type WebTransportErrorSource = "session" | "stream";
|
|
15281
|
+
type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable";
|
|
15170
15282
|
type WorkerType = "classic" | "module";
|
|
15171
15283
|
type WriteCommandType = "seek" | "truncate" | "write";
|
|
15172
15284
|
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|