@types/sharedworker 0.0.220 → 0.0.222
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
|
@@ -28,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
28
28
|
|
|
29
29
|
## Deploy Metadata
|
|
30
30
|
|
|
31
|
-
You can read what changed in version 0.0.
|
|
31
|
+
You can read what changed in version 0.0.222 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.222.
|
package/index.d.ts
CHANGED
|
@@ -1138,6 +1138,23 @@ interface WebTransportCloseInfo {
|
|
|
1138
1138
|
reason?: string;
|
|
1139
1139
|
}
|
|
1140
1140
|
|
|
1141
|
+
interface WebTransportConnectionStats {
|
|
1142
|
+
bytesReceived?: number;
|
|
1143
|
+
datagrams: WebTransportDatagramStats;
|
|
1144
|
+
minRtt?: DOMHighResTimeStamp;
|
|
1145
|
+
packetsLost?: number;
|
|
1146
|
+
packetsReceived?: number;
|
|
1147
|
+
packetsSent?: number;
|
|
1148
|
+
rttVariation?: DOMHighResTimeStamp;
|
|
1149
|
+
smoothedRtt?: DOMHighResTimeStamp;
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
interface WebTransportDatagramStats {
|
|
1153
|
+
droppedIncoming?: number;
|
|
1154
|
+
expiredOutgoing?: number;
|
|
1155
|
+
lostOutgoing?: number;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1141
1158
|
interface WebTransportErrorOptions {
|
|
1142
1159
|
source?: WebTransportErrorSource;
|
|
1143
1160
|
streamErrorCode?: number | null;
|
|
@@ -1156,6 +1173,11 @@ interface WebTransportOptions {
|
|
|
1156
1173
|
serverCertificateHashes?: WebTransportHash[];
|
|
1157
1174
|
}
|
|
1158
1175
|
|
|
1176
|
+
interface WebTransportReceiveStreamStats {
|
|
1177
|
+
bytesRead?: number;
|
|
1178
|
+
bytesReceived?: number;
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1159
1181
|
interface WebTransportSendOptions {
|
|
1160
1182
|
sendOrder?: number;
|
|
1161
1183
|
}
|
|
@@ -1163,6 +1185,12 @@ interface WebTransportSendOptions {
|
|
|
1163
1185
|
interface WebTransportSendStreamOptions extends WebTransportSendOptions {
|
|
1164
1186
|
}
|
|
1165
1187
|
|
|
1188
|
+
interface WebTransportSendStreamStats {
|
|
1189
|
+
bytesAcknowledged?: number;
|
|
1190
|
+
bytesSent?: number;
|
|
1191
|
+
bytesWritten?: number;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1166
1194
|
interface WorkerOptions {
|
|
1167
1195
|
credentials?: RequestCredentials;
|
|
1168
1196
|
name?: string;
|
|
@@ -7187,6 +7215,12 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
7187
7215
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize)
|
|
7188
7216
|
*/
|
|
7189
7217
|
readonly decodedBodySize: number;
|
|
7218
|
+
/**
|
|
7219
|
+
* The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch.
|
|
7220
|
+
*
|
|
7221
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType)
|
|
7222
|
+
*/
|
|
7223
|
+
readonly deliveryType: string;
|
|
7190
7224
|
/**
|
|
7191
7225
|
* The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource.
|
|
7192
7226
|
*
|
|
@@ -7211,6 +7245,18 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
7211
7245
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart)
|
|
7212
7246
|
*/
|
|
7213
7247
|
readonly fetchStart: DOMHighResTimeStamp;
|
|
7248
|
+
/**
|
|
7249
|
+
* 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.
|
|
7250
|
+
*
|
|
7251
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart)
|
|
7252
|
+
*/
|
|
7253
|
+
readonly finalResponseHeadersStart: DOMHighResTimeStamp;
|
|
7254
|
+
/**
|
|
7255
|
+
* 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.
|
|
7256
|
+
*
|
|
7257
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart)
|
|
7258
|
+
*/
|
|
7259
|
+
readonly firstInterimResponseStart: DOMHighResTimeStamp;
|
|
7214
7260
|
/**
|
|
7215
7261
|
* The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load.
|
|
7216
7262
|
*
|
|
@@ -7739,7 +7785,7 @@ interface ReadableStreamDefaultController<R = any> {
|
|
|
7739
7785
|
*
|
|
7740
7786
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue)
|
|
7741
7787
|
*/
|
|
7742
|
-
enqueue(chunk
|
|
7788
|
+
enqueue(chunk: R): void;
|
|
7743
7789
|
/**
|
|
7744
7790
|
* The **`error()`** method of the ReadableStreamDefaultController interface causes any future interactions with the associated stream to error.
|
|
7745
7791
|
*
|
|
@@ -11690,6 +11736,12 @@ interface WebTransport {
|
|
|
11690
11736
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed)
|
|
11691
11737
|
*/
|
|
11692
11738
|
readonly closed: Promise<WebTransportCloseInfo>;
|
|
11739
|
+
/**
|
|
11740
|
+
* The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data.
|
|
11741
|
+
*
|
|
11742
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl)
|
|
11743
|
+
*/
|
|
11744
|
+
readonly congestionControl: WebTransportCongestionControl;
|
|
11693
11745
|
/**
|
|
11694
11746
|
* 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.
|
|
11695
11747
|
*
|
|
@@ -11708,12 +11760,19 @@ interface WebTransport {
|
|
|
11708
11760
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams)
|
|
11709
11761
|
*/
|
|
11710
11762
|
readonly incomingUnidirectionalStreams: ReadableStream;
|
|
11763
|
+
readonly protocol: string;
|
|
11711
11764
|
/**
|
|
11712
11765
|
* The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use.
|
|
11713
11766
|
*
|
|
11714
11767
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready)
|
|
11715
11768
|
*/
|
|
11716
11769
|
readonly ready: Promise<void>;
|
|
11770
|
+
/**
|
|
11771
|
+
* 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).
|
|
11772
|
+
*
|
|
11773
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability)
|
|
11774
|
+
*/
|
|
11775
|
+
readonly reliability: WebTransportReliabilityMode;
|
|
11717
11776
|
/**
|
|
11718
11777
|
* The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session.
|
|
11719
11778
|
*
|
|
@@ -11732,6 +11791,12 @@ interface WebTransport {
|
|
|
11732
11791
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream)
|
|
11733
11792
|
*/
|
|
11734
11793
|
createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
|
|
11794
|
+
/**
|
|
11795
|
+
* The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics.
|
|
11796
|
+
*
|
|
11797
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats)
|
|
11798
|
+
*/
|
|
11799
|
+
getStats(): Promise<WebTransportConnectionStats>;
|
|
11735
11800
|
}
|
|
11736
11801
|
|
|
11737
11802
|
declare var WebTransport: {
|
|
@@ -11847,6 +11912,52 @@ declare var WebTransportError: {
|
|
|
11847
11912
|
new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
|
|
11848
11913
|
};
|
|
11849
11914
|
|
|
11915
|
+
/**
|
|
11916
|
+
* The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream.
|
|
11917
|
+
* Available only in secure contexts.
|
|
11918
|
+
*
|
|
11919
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream)
|
|
11920
|
+
*/
|
|
11921
|
+
interface WebTransportReceiveStream extends ReadableStream {
|
|
11922
|
+
/**
|
|
11923
|
+
* The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream.
|
|
11924
|
+
*
|
|
11925
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats)
|
|
11926
|
+
*/
|
|
11927
|
+
getStats(): Promise<WebTransportReceiveStreamStats>;
|
|
11928
|
+
}
|
|
11929
|
+
|
|
11930
|
+
declare var WebTransportReceiveStream: {
|
|
11931
|
+
prototype: WebTransportReceiveStream;
|
|
11932
|
+
new(): WebTransportReceiveStream;
|
|
11933
|
+
};
|
|
11934
|
+
|
|
11935
|
+
/**
|
|
11936
|
+
* 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.
|
|
11937
|
+
* Available only in secure contexts.
|
|
11938
|
+
*
|
|
11939
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream)
|
|
11940
|
+
*/
|
|
11941
|
+
interface WebTransportSendStream extends WritableStream {
|
|
11942
|
+
/**
|
|
11943
|
+
* 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.
|
|
11944
|
+
*
|
|
11945
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder)
|
|
11946
|
+
*/
|
|
11947
|
+
sendOrder: number;
|
|
11948
|
+
/**
|
|
11949
|
+
* The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream.
|
|
11950
|
+
*
|
|
11951
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats)
|
|
11952
|
+
*/
|
|
11953
|
+
getStats(): Promise<WebTransportSendStreamStats>;
|
|
11954
|
+
}
|
|
11955
|
+
|
|
11956
|
+
declare var WebTransportSendStream: {
|
|
11957
|
+
prototype: WebTransportSendStream;
|
|
11958
|
+
new(): WebTransportSendStream;
|
|
11959
|
+
};
|
|
11960
|
+
|
|
11850
11961
|
interface WindowOrWorkerGlobalScope {
|
|
11851
11962
|
/**
|
|
11852
11963
|
* Available only in secure contexts.
|
|
@@ -13159,6 +13270,7 @@ type TransferFunction = "hlg" | "pq" | "srgb";
|
|
|
13159
13270
|
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
|
13160
13271
|
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
|
|
13161
13272
|
type WebTransportErrorSource = "session" | "stream";
|
|
13273
|
+
type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable";
|
|
13162
13274
|
type WorkerType = "classic" | "module";
|
|
13163
13275
|
type WriteCommandType = "seek" | "truncate" | "write";
|
|
13164
13276
|
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -1135,6 +1135,23 @@ interface WebTransportCloseInfo {
|
|
|
1135
1135
|
reason?: string;
|
|
1136
1136
|
}
|
|
1137
1137
|
|
|
1138
|
+
interface WebTransportConnectionStats {
|
|
1139
|
+
bytesReceived?: number;
|
|
1140
|
+
datagrams: WebTransportDatagramStats;
|
|
1141
|
+
minRtt?: DOMHighResTimeStamp;
|
|
1142
|
+
packetsLost?: number;
|
|
1143
|
+
packetsReceived?: number;
|
|
1144
|
+
packetsSent?: number;
|
|
1145
|
+
rttVariation?: DOMHighResTimeStamp;
|
|
1146
|
+
smoothedRtt?: DOMHighResTimeStamp;
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
interface WebTransportDatagramStats {
|
|
1150
|
+
droppedIncoming?: number;
|
|
1151
|
+
expiredOutgoing?: number;
|
|
1152
|
+
lostOutgoing?: number;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1138
1155
|
interface WebTransportErrorOptions {
|
|
1139
1156
|
source?: WebTransportErrorSource;
|
|
1140
1157
|
streamErrorCode?: number | null;
|
|
@@ -1153,6 +1170,11 @@ interface WebTransportOptions {
|
|
|
1153
1170
|
serverCertificateHashes?: WebTransportHash[];
|
|
1154
1171
|
}
|
|
1155
1172
|
|
|
1173
|
+
interface WebTransportReceiveStreamStats {
|
|
1174
|
+
bytesRead?: number;
|
|
1175
|
+
bytesReceived?: number;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1156
1178
|
interface WebTransportSendOptions {
|
|
1157
1179
|
sendOrder?: number;
|
|
1158
1180
|
}
|
|
@@ -1160,6 +1182,12 @@ interface WebTransportSendOptions {
|
|
|
1160
1182
|
interface WebTransportSendStreamOptions extends WebTransportSendOptions {
|
|
1161
1183
|
}
|
|
1162
1184
|
|
|
1185
|
+
interface WebTransportSendStreamStats {
|
|
1186
|
+
bytesAcknowledged?: number;
|
|
1187
|
+
bytesSent?: number;
|
|
1188
|
+
bytesWritten?: number;
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1163
1191
|
interface WorkerOptions {
|
|
1164
1192
|
credentials?: RequestCredentials;
|
|
1165
1193
|
name?: string;
|
|
@@ -7184,6 +7212,12 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
7184
7212
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize)
|
|
7185
7213
|
*/
|
|
7186
7214
|
readonly decodedBodySize: number;
|
|
7215
|
+
/**
|
|
7216
|
+
* The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch.
|
|
7217
|
+
*
|
|
7218
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType)
|
|
7219
|
+
*/
|
|
7220
|
+
readonly deliveryType: string;
|
|
7187
7221
|
/**
|
|
7188
7222
|
* The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource.
|
|
7189
7223
|
*
|
|
@@ -7208,6 +7242,18 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
7208
7242
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart)
|
|
7209
7243
|
*/
|
|
7210
7244
|
readonly fetchStart: DOMHighResTimeStamp;
|
|
7245
|
+
/**
|
|
7246
|
+
* 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.
|
|
7247
|
+
*
|
|
7248
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart)
|
|
7249
|
+
*/
|
|
7250
|
+
readonly finalResponseHeadersStart: DOMHighResTimeStamp;
|
|
7251
|
+
/**
|
|
7252
|
+
* 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.
|
|
7253
|
+
*
|
|
7254
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart)
|
|
7255
|
+
*/
|
|
7256
|
+
readonly firstInterimResponseStart: DOMHighResTimeStamp;
|
|
7211
7257
|
/**
|
|
7212
7258
|
* The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load.
|
|
7213
7259
|
*
|
|
@@ -7736,7 +7782,7 @@ interface ReadableStreamDefaultController<R = any> {
|
|
|
7736
7782
|
*
|
|
7737
7783
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue)
|
|
7738
7784
|
*/
|
|
7739
|
-
enqueue(chunk
|
|
7785
|
+
enqueue(chunk: R): void;
|
|
7740
7786
|
/**
|
|
7741
7787
|
* The **`error()`** method of the ReadableStreamDefaultController interface causes any future interactions with the associated stream to error.
|
|
7742
7788
|
*
|
|
@@ -11687,6 +11733,12 @@ interface WebTransport {
|
|
|
11687
11733
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed)
|
|
11688
11734
|
*/
|
|
11689
11735
|
readonly closed: Promise<WebTransportCloseInfo>;
|
|
11736
|
+
/**
|
|
11737
|
+
* The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data.
|
|
11738
|
+
*
|
|
11739
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl)
|
|
11740
|
+
*/
|
|
11741
|
+
readonly congestionControl: WebTransportCongestionControl;
|
|
11690
11742
|
/**
|
|
11691
11743
|
* 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.
|
|
11692
11744
|
*
|
|
@@ -11705,12 +11757,19 @@ interface WebTransport {
|
|
|
11705
11757
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams)
|
|
11706
11758
|
*/
|
|
11707
11759
|
readonly incomingUnidirectionalStreams: ReadableStream;
|
|
11760
|
+
readonly protocol: string;
|
|
11708
11761
|
/**
|
|
11709
11762
|
* The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use.
|
|
11710
11763
|
*
|
|
11711
11764
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready)
|
|
11712
11765
|
*/
|
|
11713
11766
|
readonly ready: Promise<void>;
|
|
11767
|
+
/**
|
|
11768
|
+
* 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).
|
|
11769
|
+
*
|
|
11770
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability)
|
|
11771
|
+
*/
|
|
11772
|
+
readonly reliability: WebTransportReliabilityMode;
|
|
11714
11773
|
/**
|
|
11715
11774
|
* The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session.
|
|
11716
11775
|
*
|
|
@@ -11729,6 +11788,12 @@ interface WebTransport {
|
|
|
11729
11788
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream)
|
|
11730
11789
|
*/
|
|
11731
11790
|
createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
|
|
11791
|
+
/**
|
|
11792
|
+
* The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics.
|
|
11793
|
+
*
|
|
11794
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats)
|
|
11795
|
+
*/
|
|
11796
|
+
getStats(): Promise<WebTransportConnectionStats>;
|
|
11732
11797
|
}
|
|
11733
11798
|
|
|
11734
11799
|
declare var WebTransport: {
|
|
@@ -11844,6 +11909,52 @@ declare var WebTransportError: {
|
|
|
11844
11909
|
new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
|
|
11845
11910
|
};
|
|
11846
11911
|
|
|
11912
|
+
/**
|
|
11913
|
+
* The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream.
|
|
11914
|
+
* Available only in secure contexts.
|
|
11915
|
+
*
|
|
11916
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream)
|
|
11917
|
+
*/
|
|
11918
|
+
interface WebTransportReceiveStream extends ReadableStream {
|
|
11919
|
+
/**
|
|
11920
|
+
* The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream.
|
|
11921
|
+
*
|
|
11922
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats)
|
|
11923
|
+
*/
|
|
11924
|
+
getStats(): Promise<WebTransportReceiveStreamStats>;
|
|
11925
|
+
}
|
|
11926
|
+
|
|
11927
|
+
declare var WebTransportReceiveStream: {
|
|
11928
|
+
prototype: WebTransportReceiveStream;
|
|
11929
|
+
new(): WebTransportReceiveStream;
|
|
11930
|
+
};
|
|
11931
|
+
|
|
11932
|
+
/**
|
|
11933
|
+
* 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.
|
|
11934
|
+
* Available only in secure contexts.
|
|
11935
|
+
*
|
|
11936
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream)
|
|
11937
|
+
*/
|
|
11938
|
+
interface WebTransportSendStream extends WritableStream {
|
|
11939
|
+
/**
|
|
11940
|
+
* 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.
|
|
11941
|
+
*
|
|
11942
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder)
|
|
11943
|
+
*/
|
|
11944
|
+
sendOrder: number;
|
|
11945
|
+
/**
|
|
11946
|
+
* The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream.
|
|
11947
|
+
*
|
|
11948
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats)
|
|
11949
|
+
*/
|
|
11950
|
+
getStats(): Promise<WebTransportSendStreamStats>;
|
|
11951
|
+
}
|
|
11952
|
+
|
|
11953
|
+
declare var WebTransportSendStream: {
|
|
11954
|
+
prototype: WebTransportSendStream;
|
|
11955
|
+
new(): WebTransportSendStream;
|
|
11956
|
+
};
|
|
11957
|
+
|
|
11847
11958
|
interface WindowOrWorkerGlobalScope {
|
|
11848
11959
|
/**
|
|
11849
11960
|
* Available only in secure contexts.
|
|
@@ -13156,6 +13267,7 @@ type TransferFunction = "hlg" | "pq" | "srgb";
|
|
|
13156
13267
|
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
|
13157
13268
|
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
|
|
13158
13269
|
type WebTransportErrorSource = "session" | "stream";
|
|
13270
|
+
type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable";
|
|
13159
13271
|
type WorkerType = "classic" | "module";
|
|
13160
13272
|
type WriteCommandType = "seek" | "truncate" | "write";
|
|
13161
13273
|
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -1135,6 +1135,23 @@ interface WebTransportCloseInfo {
|
|
|
1135
1135
|
reason?: string;
|
|
1136
1136
|
}
|
|
1137
1137
|
|
|
1138
|
+
interface WebTransportConnectionStats {
|
|
1139
|
+
bytesReceived?: number;
|
|
1140
|
+
datagrams: WebTransportDatagramStats;
|
|
1141
|
+
minRtt?: DOMHighResTimeStamp;
|
|
1142
|
+
packetsLost?: number;
|
|
1143
|
+
packetsReceived?: number;
|
|
1144
|
+
packetsSent?: number;
|
|
1145
|
+
rttVariation?: DOMHighResTimeStamp;
|
|
1146
|
+
smoothedRtt?: DOMHighResTimeStamp;
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
interface WebTransportDatagramStats {
|
|
1150
|
+
droppedIncoming?: number;
|
|
1151
|
+
expiredOutgoing?: number;
|
|
1152
|
+
lostOutgoing?: number;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1138
1155
|
interface WebTransportErrorOptions {
|
|
1139
1156
|
source?: WebTransportErrorSource;
|
|
1140
1157
|
streamErrorCode?: number | null;
|
|
@@ -1153,6 +1170,11 @@ interface WebTransportOptions {
|
|
|
1153
1170
|
serverCertificateHashes?: WebTransportHash[];
|
|
1154
1171
|
}
|
|
1155
1172
|
|
|
1173
|
+
interface WebTransportReceiveStreamStats {
|
|
1174
|
+
bytesRead?: number;
|
|
1175
|
+
bytesReceived?: number;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1156
1178
|
interface WebTransportSendOptions {
|
|
1157
1179
|
sendOrder?: number;
|
|
1158
1180
|
}
|
|
@@ -1160,6 +1182,12 @@ interface WebTransportSendOptions {
|
|
|
1160
1182
|
interface WebTransportSendStreamOptions extends WebTransportSendOptions {
|
|
1161
1183
|
}
|
|
1162
1184
|
|
|
1185
|
+
interface WebTransportSendStreamStats {
|
|
1186
|
+
bytesAcknowledged?: number;
|
|
1187
|
+
bytesSent?: number;
|
|
1188
|
+
bytesWritten?: number;
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1163
1191
|
interface WorkerOptions {
|
|
1164
1192
|
credentials?: RequestCredentials;
|
|
1165
1193
|
name?: string;
|
|
@@ -7184,6 +7212,12 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
7184
7212
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize)
|
|
7185
7213
|
*/
|
|
7186
7214
|
readonly decodedBodySize: number;
|
|
7215
|
+
/**
|
|
7216
|
+
* The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch.
|
|
7217
|
+
*
|
|
7218
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType)
|
|
7219
|
+
*/
|
|
7220
|
+
readonly deliveryType: string;
|
|
7187
7221
|
/**
|
|
7188
7222
|
* The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource.
|
|
7189
7223
|
*
|
|
@@ -7208,6 +7242,18 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
7208
7242
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart)
|
|
7209
7243
|
*/
|
|
7210
7244
|
readonly fetchStart: DOMHighResTimeStamp;
|
|
7245
|
+
/**
|
|
7246
|
+
* 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.
|
|
7247
|
+
*
|
|
7248
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart)
|
|
7249
|
+
*/
|
|
7250
|
+
readonly finalResponseHeadersStart: DOMHighResTimeStamp;
|
|
7251
|
+
/**
|
|
7252
|
+
* 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.
|
|
7253
|
+
*
|
|
7254
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart)
|
|
7255
|
+
*/
|
|
7256
|
+
readonly firstInterimResponseStart: DOMHighResTimeStamp;
|
|
7211
7257
|
/**
|
|
7212
7258
|
* The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load.
|
|
7213
7259
|
*
|
|
@@ -7736,7 +7782,7 @@ interface ReadableStreamDefaultController<R = any> {
|
|
|
7736
7782
|
*
|
|
7737
7783
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue)
|
|
7738
7784
|
*/
|
|
7739
|
-
enqueue(chunk
|
|
7785
|
+
enqueue(chunk: R): void;
|
|
7740
7786
|
/**
|
|
7741
7787
|
* The **`error()`** method of the ReadableStreamDefaultController interface causes any future interactions with the associated stream to error.
|
|
7742
7788
|
*
|
|
@@ -11687,6 +11733,12 @@ interface WebTransport {
|
|
|
11687
11733
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed)
|
|
11688
11734
|
*/
|
|
11689
11735
|
readonly closed: Promise<WebTransportCloseInfo>;
|
|
11736
|
+
/**
|
|
11737
|
+
* The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data.
|
|
11738
|
+
*
|
|
11739
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl)
|
|
11740
|
+
*/
|
|
11741
|
+
readonly congestionControl: WebTransportCongestionControl;
|
|
11690
11742
|
/**
|
|
11691
11743
|
* 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.
|
|
11692
11744
|
*
|
|
@@ -11705,12 +11757,19 @@ interface WebTransport {
|
|
|
11705
11757
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams)
|
|
11706
11758
|
*/
|
|
11707
11759
|
readonly incomingUnidirectionalStreams: ReadableStream;
|
|
11760
|
+
readonly protocol: string;
|
|
11708
11761
|
/**
|
|
11709
11762
|
* The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use.
|
|
11710
11763
|
*
|
|
11711
11764
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready)
|
|
11712
11765
|
*/
|
|
11713
11766
|
readonly ready: Promise<void>;
|
|
11767
|
+
/**
|
|
11768
|
+
* 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).
|
|
11769
|
+
*
|
|
11770
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability)
|
|
11771
|
+
*/
|
|
11772
|
+
readonly reliability: WebTransportReliabilityMode;
|
|
11714
11773
|
/**
|
|
11715
11774
|
* The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session.
|
|
11716
11775
|
*
|
|
@@ -11729,6 +11788,12 @@ interface WebTransport {
|
|
|
11729
11788
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream)
|
|
11730
11789
|
*/
|
|
11731
11790
|
createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
|
|
11791
|
+
/**
|
|
11792
|
+
* The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics.
|
|
11793
|
+
*
|
|
11794
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats)
|
|
11795
|
+
*/
|
|
11796
|
+
getStats(): Promise<WebTransportConnectionStats>;
|
|
11732
11797
|
}
|
|
11733
11798
|
|
|
11734
11799
|
declare var WebTransport: {
|
|
@@ -11844,6 +11909,52 @@ declare var WebTransportError: {
|
|
|
11844
11909
|
new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
|
|
11845
11910
|
};
|
|
11846
11911
|
|
|
11912
|
+
/**
|
|
11913
|
+
* The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream.
|
|
11914
|
+
* Available only in secure contexts.
|
|
11915
|
+
*
|
|
11916
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream)
|
|
11917
|
+
*/
|
|
11918
|
+
interface WebTransportReceiveStream extends ReadableStream {
|
|
11919
|
+
/**
|
|
11920
|
+
* The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream.
|
|
11921
|
+
*
|
|
11922
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats)
|
|
11923
|
+
*/
|
|
11924
|
+
getStats(): Promise<WebTransportReceiveStreamStats>;
|
|
11925
|
+
}
|
|
11926
|
+
|
|
11927
|
+
declare var WebTransportReceiveStream: {
|
|
11928
|
+
prototype: WebTransportReceiveStream;
|
|
11929
|
+
new(): WebTransportReceiveStream;
|
|
11930
|
+
};
|
|
11931
|
+
|
|
11932
|
+
/**
|
|
11933
|
+
* 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.
|
|
11934
|
+
* Available only in secure contexts.
|
|
11935
|
+
*
|
|
11936
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream)
|
|
11937
|
+
*/
|
|
11938
|
+
interface WebTransportSendStream extends WritableStream {
|
|
11939
|
+
/**
|
|
11940
|
+
* 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.
|
|
11941
|
+
*
|
|
11942
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder)
|
|
11943
|
+
*/
|
|
11944
|
+
sendOrder: number;
|
|
11945
|
+
/**
|
|
11946
|
+
* The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream.
|
|
11947
|
+
*
|
|
11948
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats)
|
|
11949
|
+
*/
|
|
11950
|
+
getStats(): Promise<WebTransportSendStreamStats>;
|
|
11951
|
+
}
|
|
11952
|
+
|
|
11953
|
+
declare var WebTransportSendStream: {
|
|
11954
|
+
prototype: WebTransportSendStream;
|
|
11955
|
+
new(): WebTransportSendStream;
|
|
11956
|
+
};
|
|
11957
|
+
|
|
11847
11958
|
interface WindowOrWorkerGlobalScope {
|
|
11848
11959
|
/**
|
|
11849
11960
|
* Available only in secure contexts.
|
|
@@ -13156,6 +13267,7 @@ type TransferFunction = "hlg" | "pq" | "srgb";
|
|
|
13156
13267
|
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
|
13157
13268
|
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
|
|
13158
13269
|
type WebTransportErrorSource = "session" | "stream";
|
|
13270
|
+
type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable";
|
|
13159
13271
|
type WorkerType = "classic" | "module";
|
|
13160
13272
|
type WriteCommandType = "seek" | "truncate" | "write";
|
|
13161
13273
|
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -1135,6 +1135,23 @@ interface WebTransportCloseInfo {
|
|
|
1135
1135
|
reason?: string;
|
|
1136
1136
|
}
|
|
1137
1137
|
|
|
1138
|
+
interface WebTransportConnectionStats {
|
|
1139
|
+
bytesReceived?: number;
|
|
1140
|
+
datagrams: WebTransportDatagramStats;
|
|
1141
|
+
minRtt?: DOMHighResTimeStamp;
|
|
1142
|
+
packetsLost?: number;
|
|
1143
|
+
packetsReceived?: number;
|
|
1144
|
+
packetsSent?: number;
|
|
1145
|
+
rttVariation?: DOMHighResTimeStamp;
|
|
1146
|
+
smoothedRtt?: DOMHighResTimeStamp;
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
interface WebTransportDatagramStats {
|
|
1150
|
+
droppedIncoming?: number;
|
|
1151
|
+
expiredOutgoing?: number;
|
|
1152
|
+
lostOutgoing?: number;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1138
1155
|
interface WebTransportErrorOptions {
|
|
1139
1156
|
source?: WebTransportErrorSource;
|
|
1140
1157
|
streamErrorCode?: number | null;
|
|
@@ -1153,6 +1170,11 @@ interface WebTransportOptions {
|
|
|
1153
1170
|
serverCertificateHashes?: WebTransportHash[];
|
|
1154
1171
|
}
|
|
1155
1172
|
|
|
1173
|
+
interface WebTransportReceiveStreamStats {
|
|
1174
|
+
bytesRead?: number;
|
|
1175
|
+
bytesReceived?: number;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1156
1178
|
interface WebTransportSendOptions {
|
|
1157
1179
|
sendOrder?: number;
|
|
1158
1180
|
}
|
|
@@ -1160,6 +1182,12 @@ interface WebTransportSendOptions {
|
|
|
1160
1182
|
interface WebTransportSendStreamOptions extends WebTransportSendOptions {
|
|
1161
1183
|
}
|
|
1162
1184
|
|
|
1185
|
+
interface WebTransportSendStreamStats {
|
|
1186
|
+
bytesAcknowledged?: number;
|
|
1187
|
+
bytesSent?: number;
|
|
1188
|
+
bytesWritten?: number;
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1163
1191
|
interface WorkerOptions {
|
|
1164
1192
|
credentials?: RequestCredentials;
|
|
1165
1193
|
name?: string;
|
|
@@ -7184,6 +7212,12 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
7184
7212
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize)
|
|
7185
7213
|
*/
|
|
7186
7214
|
readonly decodedBodySize: number;
|
|
7215
|
+
/**
|
|
7216
|
+
* The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch.
|
|
7217
|
+
*
|
|
7218
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType)
|
|
7219
|
+
*/
|
|
7220
|
+
readonly deliveryType: string;
|
|
7187
7221
|
/**
|
|
7188
7222
|
* The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource.
|
|
7189
7223
|
*
|
|
@@ -7208,6 +7242,18 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
7208
7242
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart)
|
|
7209
7243
|
*/
|
|
7210
7244
|
readonly fetchStart: DOMHighResTimeStamp;
|
|
7245
|
+
/**
|
|
7246
|
+
* 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.
|
|
7247
|
+
*
|
|
7248
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart)
|
|
7249
|
+
*/
|
|
7250
|
+
readonly finalResponseHeadersStart: DOMHighResTimeStamp;
|
|
7251
|
+
/**
|
|
7252
|
+
* 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.
|
|
7253
|
+
*
|
|
7254
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart)
|
|
7255
|
+
*/
|
|
7256
|
+
readonly firstInterimResponseStart: DOMHighResTimeStamp;
|
|
7211
7257
|
/**
|
|
7212
7258
|
* The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load.
|
|
7213
7259
|
*
|
|
@@ -7736,7 +7782,7 @@ interface ReadableStreamDefaultController<R = any> {
|
|
|
7736
7782
|
*
|
|
7737
7783
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue)
|
|
7738
7784
|
*/
|
|
7739
|
-
enqueue(chunk
|
|
7785
|
+
enqueue(chunk: R): void;
|
|
7740
7786
|
/**
|
|
7741
7787
|
* The **`error()`** method of the ReadableStreamDefaultController interface causes any future interactions with the associated stream to error.
|
|
7742
7788
|
*
|
|
@@ -11687,6 +11733,12 @@ interface WebTransport {
|
|
|
11687
11733
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed)
|
|
11688
11734
|
*/
|
|
11689
11735
|
readonly closed: Promise<WebTransportCloseInfo>;
|
|
11736
|
+
/**
|
|
11737
|
+
* The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data.
|
|
11738
|
+
*
|
|
11739
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl)
|
|
11740
|
+
*/
|
|
11741
|
+
readonly congestionControl: WebTransportCongestionControl;
|
|
11690
11742
|
/**
|
|
11691
11743
|
* 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.
|
|
11692
11744
|
*
|
|
@@ -11705,12 +11757,19 @@ interface WebTransport {
|
|
|
11705
11757
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams)
|
|
11706
11758
|
*/
|
|
11707
11759
|
readonly incomingUnidirectionalStreams: ReadableStream;
|
|
11760
|
+
readonly protocol: string;
|
|
11708
11761
|
/**
|
|
11709
11762
|
* The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use.
|
|
11710
11763
|
*
|
|
11711
11764
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready)
|
|
11712
11765
|
*/
|
|
11713
11766
|
readonly ready: Promise<void>;
|
|
11767
|
+
/**
|
|
11768
|
+
* 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).
|
|
11769
|
+
*
|
|
11770
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability)
|
|
11771
|
+
*/
|
|
11772
|
+
readonly reliability: WebTransportReliabilityMode;
|
|
11714
11773
|
/**
|
|
11715
11774
|
* The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session.
|
|
11716
11775
|
*
|
|
@@ -11729,6 +11788,12 @@ interface WebTransport {
|
|
|
11729
11788
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream)
|
|
11730
11789
|
*/
|
|
11731
11790
|
createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
|
|
11791
|
+
/**
|
|
11792
|
+
* The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics.
|
|
11793
|
+
*
|
|
11794
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats)
|
|
11795
|
+
*/
|
|
11796
|
+
getStats(): Promise<WebTransportConnectionStats>;
|
|
11732
11797
|
}
|
|
11733
11798
|
|
|
11734
11799
|
declare var WebTransport: {
|
|
@@ -11844,6 +11909,52 @@ declare var WebTransportError: {
|
|
|
11844
11909
|
new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
|
|
11845
11910
|
};
|
|
11846
11911
|
|
|
11912
|
+
/**
|
|
11913
|
+
* The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream.
|
|
11914
|
+
* Available only in secure contexts.
|
|
11915
|
+
*
|
|
11916
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream)
|
|
11917
|
+
*/
|
|
11918
|
+
interface WebTransportReceiveStream extends ReadableStream {
|
|
11919
|
+
/**
|
|
11920
|
+
* The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream.
|
|
11921
|
+
*
|
|
11922
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats)
|
|
11923
|
+
*/
|
|
11924
|
+
getStats(): Promise<WebTransportReceiveStreamStats>;
|
|
11925
|
+
}
|
|
11926
|
+
|
|
11927
|
+
declare var WebTransportReceiveStream: {
|
|
11928
|
+
prototype: WebTransportReceiveStream;
|
|
11929
|
+
new(): WebTransportReceiveStream;
|
|
11930
|
+
};
|
|
11931
|
+
|
|
11932
|
+
/**
|
|
11933
|
+
* 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.
|
|
11934
|
+
* Available only in secure contexts.
|
|
11935
|
+
*
|
|
11936
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream)
|
|
11937
|
+
*/
|
|
11938
|
+
interface WebTransportSendStream extends WritableStream {
|
|
11939
|
+
/**
|
|
11940
|
+
* 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.
|
|
11941
|
+
*
|
|
11942
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder)
|
|
11943
|
+
*/
|
|
11944
|
+
sendOrder: number;
|
|
11945
|
+
/**
|
|
11946
|
+
* The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream.
|
|
11947
|
+
*
|
|
11948
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats)
|
|
11949
|
+
*/
|
|
11950
|
+
getStats(): Promise<WebTransportSendStreamStats>;
|
|
11951
|
+
}
|
|
11952
|
+
|
|
11953
|
+
declare var WebTransportSendStream: {
|
|
11954
|
+
prototype: WebTransportSendStream;
|
|
11955
|
+
new(): WebTransportSendStream;
|
|
11956
|
+
};
|
|
11957
|
+
|
|
11847
11958
|
interface WindowOrWorkerGlobalScope {
|
|
11848
11959
|
/**
|
|
11849
11960
|
* Available only in secure contexts.
|
|
@@ -13156,6 +13267,7 @@ type TransferFunction = "hlg" | "pq" | "srgb";
|
|
|
13156
13267
|
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
|
13157
13268
|
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
|
|
13158
13269
|
type WebTransportErrorSource = "session" | "stream";
|
|
13270
|
+
type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable";
|
|
13159
13271
|
type WorkerType = "classic" | "module";
|
|
13160
13272
|
type WriteCommandType = "seek" | "truncate" | "write";
|
|
13161
13273
|
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|