Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
182 changes: 181 additions & 1 deletion baselines/dom.generated.d.ts

Large diffs are not rendered by default.

112 changes: 112 additions & 0 deletions baselines/serviceworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1205,6 +1205,23 @@ interface WebTransportCloseInfo {
reason?: string;
}

interface WebTransportConnectionStats {
bytesReceived?: number;
datagrams: WebTransportDatagramStats;
minRtt?: DOMHighResTimeStamp;
packetsLost?: number;
packetsReceived?: number;
packetsSent?: number;
rttVariation?: DOMHighResTimeStamp;
smoothedRtt?: DOMHighResTimeStamp;
}

interface WebTransportDatagramStats {
droppedIncoming?: number;
expiredOutgoing?: number;
lostOutgoing?: number;
}

interface WebTransportErrorOptions {
source?: WebTransportErrorSource;
streamErrorCode?: number | null;
Expand All @@ -1223,13 +1240,24 @@ interface WebTransportOptions {
serverCertificateHashes?: WebTransportHash[];
}

interface WebTransportReceiveStreamStats {
bytesRead?: number;
bytesReceived?: number;
}

interface WebTransportSendOptions {
sendOrder?: number;
}

interface WebTransportSendStreamOptions extends WebTransportSendOptions {
}

interface WebTransportSendStreamStats {
bytesAcknowledged?: number;
bytesSent?: number;
bytesWritten?: number;
}

interface WriteParams {
data?: BufferSource | Blob | string | null;
position?: number | null;
Expand Down Expand Up @@ -7526,6 +7554,12 @@ interface PerformanceResourceTiming extends PerformanceEntry {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize)
*/
readonly decodedBodySize: number;
/**
* The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType)
*/
readonly deliveryType: string;
/**
* The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource.
*
Expand All @@ -7550,6 +7584,18 @@ interface PerformanceResourceTiming extends PerformanceEntry {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart)
*/
readonly fetchStart: DOMHighResTimeStamp;
/**
* 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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart)
*/
readonly finalResponseHeadersStart: DOMHighResTimeStamp;
/**
* 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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart)
*/
readonly firstInterimResponseStart: DOMHighResTimeStamp;
/**
* The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load.
*
Expand Down Expand Up @@ -12144,6 +12190,12 @@ interface WebTransport {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed)
*/
readonly closed: Promise<WebTransportCloseInfo>;
/**
* The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl)
*/
readonly congestionControl: WebTransportCongestionControl;
/**
* 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.
*
Expand All @@ -12162,12 +12214,19 @@ interface WebTransport {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams)
*/
readonly incomingUnidirectionalStreams: ReadableStream;
readonly protocol: string;
/**
* The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready)
*/
readonly ready: Promise<void>;
/**
* 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).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability)
*/
readonly reliability: WebTransportReliabilityMode;
/**
* The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session.
*
Expand All @@ -12186,6 +12245,12 @@ interface WebTransport {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream)
*/
createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
/**
* The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats)
*/
getStats(): Promise<WebTransportConnectionStats>;
}

declare var WebTransport: {
Expand Down Expand Up @@ -12301,6 +12366,52 @@ declare var WebTransportError: {
new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
};

/**
* The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream)
*/
interface WebTransportReceiveStream extends ReadableStream {
/**
* The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats)
*/
getStats(): Promise<WebTransportReceiveStreamStats>;
}

declare var WebTransportReceiveStream: {
prototype: WebTransportReceiveStream;
new(): WebTransportReceiveStream;
};

/**
* 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.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream)
*/
interface WebTransportSendStream extends WritableStream {
/**
* 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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder)
*/
sendOrder: number;
/**
* The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats)
*/
getStats(): Promise<WebTransportSendStreamStats>;
}

declare var WebTransportSendStream: {
prototype: WebTransportSendStream;
new(): WebTransportSendStream;
};

/**
* 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.
*
Expand Down Expand Up @@ -13471,6 +13582,7 @@ type TransferFunction = "hlg" | "pq" | "srgb";
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
type WebTransportErrorSource = "session" | "stream";
type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable";
type WorkerType = "classic" | "module";
type WriteCommandType = "seek" | "truncate" | "write";

Expand Down
112 changes: 112 additions & 0 deletions baselines/sharedworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,23 @@ interface WebTransportCloseInfo {
reason?: string;
}

interface WebTransportConnectionStats {
bytesReceived?: number;
datagrams: WebTransportDatagramStats;
minRtt?: DOMHighResTimeStamp;
packetsLost?: number;
packetsReceived?: number;
packetsSent?: number;
rttVariation?: DOMHighResTimeStamp;
smoothedRtt?: DOMHighResTimeStamp;
}

interface WebTransportDatagramStats {
droppedIncoming?: number;
expiredOutgoing?: number;
lostOutgoing?: number;
}

interface WebTransportErrorOptions {
source?: WebTransportErrorSource;
streamErrorCode?: number | null;
Expand All @@ -1153,13 +1170,24 @@ interface WebTransportOptions {
serverCertificateHashes?: WebTransportHash[];
}

interface WebTransportReceiveStreamStats {
bytesRead?: number;
bytesReceived?: number;
}

interface WebTransportSendOptions {
sendOrder?: number;
}

interface WebTransportSendStreamOptions extends WebTransportSendOptions {
}

interface WebTransportSendStreamStats {
bytesAcknowledged?: number;
bytesSent?: number;
bytesWritten?: number;
}

interface WorkerOptions {
credentials?: RequestCredentials;
name?: string;
Expand Down Expand Up @@ -7184,6 +7212,12 @@ interface PerformanceResourceTiming extends PerformanceEntry {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize)
*/
readonly decodedBodySize: number;
/**
* The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType)
*/
readonly deliveryType: string;
/**
* The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource.
*
Expand All @@ -7208,6 +7242,18 @@ interface PerformanceResourceTiming extends PerformanceEntry {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart)
*/
readonly fetchStart: DOMHighResTimeStamp;
/**
* 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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart)
*/
readonly finalResponseHeadersStart: DOMHighResTimeStamp;
/**
* 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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart)
*/
readonly firstInterimResponseStart: DOMHighResTimeStamp;
/**
* The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load.
*
Expand Down Expand Up @@ -11687,6 +11733,12 @@ interface WebTransport {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed)
*/
readonly closed: Promise<WebTransportCloseInfo>;
/**
* The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl)
*/
readonly congestionControl: WebTransportCongestionControl;
/**
* 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.
*
Expand All @@ -11705,12 +11757,19 @@ interface WebTransport {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams)
*/
readonly incomingUnidirectionalStreams: ReadableStream;
readonly protocol: string;
/**
* The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready)
*/
readonly ready: Promise<void>;
/**
* 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).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability)
*/
readonly reliability: WebTransportReliabilityMode;
/**
* The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session.
*
Expand All @@ -11729,6 +11788,12 @@ interface WebTransport {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream)
*/
createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
/**
* The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats)
*/
getStats(): Promise<WebTransportConnectionStats>;
}

declare var WebTransport: {
Expand Down Expand Up @@ -11844,6 +11909,52 @@ declare var WebTransportError: {
new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
};

/**
* The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream)
*/
interface WebTransportReceiveStream extends ReadableStream {
/**
* The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats)
*/
getStats(): Promise<WebTransportReceiveStreamStats>;
}

declare var WebTransportReceiveStream: {
prototype: WebTransportReceiveStream;
new(): WebTransportReceiveStream;
};

/**
* 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.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream)
*/
interface WebTransportSendStream extends WritableStream {
/**
* 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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder)
*/
sendOrder: number;
/**
* The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats)
*/
getStats(): Promise<WebTransportSendStreamStats>;
}

declare var WebTransportSendStream: {
prototype: WebTransportSendStream;
new(): WebTransportSendStream;
};

interface WindowOrWorkerGlobalScope {
/**
* Available only in secure contexts.
Expand Down Expand Up @@ -13156,6 +13267,7 @@ type TransferFunction = "hlg" | "pq" | "srgb";
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
type WebTransportErrorSource = "session" | "stream";
type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable";
type WorkerType = "classic" | "module";
type WriteCommandType = "seek" | "truncate" | "write";
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
Expand Down
Loading