From 9817d72817092f8b6a615c28a8bebbc0dc2c269b Mon Sep 17 00:00:00 2001 From: Bashamega Date: Fri, 28 Aug 2026 11:12:27 +0300 Subject: [PATCH 1/9] Update Bcd & support async_sequence --- baselines/audioworklet.generated.d.ts | 6 + baselines/dom.generated.d.ts | 180 +++++++++++++++++- baselines/serviceworker.generated.d.ts | 130 ++++++++++++- baselines/sharedworker.generated.d.ts | 79 +++++++- baselines/ts5.5/audioworklet.generated.d.ts | 6 + baselines/ts5.5/dom.generated.d.ts | 180 +++++++++++++++++- baselines/ts5.5/serviceworker.generated.d.ts | 121 +++++++++++- .../serviceworker.iterable.generated.d.ts | 9 + baselines/ts5.5/sharedworker.generated.d.ts | 79 +++++++- baselines/ts5.5/webworker.generated.d.ts | 121 +++++++++++- .../ts5.5/webworker.iterable.generated.d.ts | 9 + baselines/ts5.6/audioworklet.generated.d.ts | 6 + baselines/ts5.6/dom.generated.d.ts | 180 +++++++++++++++++- baselines/ts5.6/serviceworker.generated.d.ts | 121 +++++++++++- .../serviceworker.iterable.generated.d.ts | 9 + baselines/ts5.6/sharedworker.generated.d.ts | 79 +++++++- baselines/ts5.6/webworker.generated.d.ts | 121 +++++++++++- .../ts5.6/webworker.iterable.generated.d.ts | 9 + baselines/ts5.9/audioworklet.generated.d.ts | 6 + baselines/ts5.9/dom.generated.d.ts | 180 +++++++++++++++++- baselines/ts5.9/serviceworker.generated.d.ts | 121 +++++++++++- .../serviceworker.iterable.generated.d.ts | 9 + baselines/ts5.9/sharedworker.generated.d.ts | 79 +++++++- baselines/ts5.9/webworker.generated.d.ts | 121 +++++++++++- .../ts5.9/webworker.iterable.generated.d.ts | 9 + baselines/webworker.generated.d.ts | 130 ++++++++++++- package-lock.json | 32 ++-- package.json | 2 +- src/build.ts | 7 +- src/build/emitter.ts | 21 ++ 30 files changed, 2113 insertions(+), 49 deletions(-) diff --git a/baselines/audioworklet.generated.d.ts b/baselines/audioworklet.generated.d.ts index dc7ea4402..538391885 100644 --- a/baselines/audioworklet.generated.d.ts +++ b/baselines/audioworklet.generated.d.ts @@ -962,6 +962,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: any): ReadableStream; }; /** diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index dfcfcd2cf..ebb28c09e 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -336,6 +336,11 @@ interface BlobPropertyBag { type?: string; } +interface CSSContainerCondition { + name: string; + query: string; +} + interface CSSMatrixComponentOptions { is2D?: boolean; } @@ -1264,6 +1269,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -3249,6 +3260,7 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { + sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -4054,6 +4066,8 @@ declare var AnimationEffect: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent) */ interface AnimationEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animation) */ + readonly animation: CSSAnimation | null; /** * The **`AnimationEvent.animationName`** read-only property is a string containing the value of the animation-name CSS property associated with the transition. * @@ -5597,6 +5611,8 @@ declare var CSSConditionRule: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule) */ interface CSSContainerRule extends CSSConditionRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/conditions) */ + readonly conditions: ReadonlyArray; /** * The read-only **`containerName`** property of the CSSContainerRule interface represents the container name of the associated CSS @container at-rule. * @@ -5707,12 +5723,14 @@ interface CSSFontFaceDescriptors extends CSSStyleDeclarationBase { "font-stretch": string; "font-style": string; "font-weight": string; + "font-width": string; fontDisplay: string; fontFamily: string; fontFeatureSettings: string; fontStretch: string; fontStyle: string; fontWeight: string; + fontWidth: string; "size-adjust": string; sizeAdjust: string; src: string; @@ -8150,6 +8168,12 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/font-weight) */ fontWeight: string; + /** + * The font-width CSS property selects a normal, condensed, or expanded face from a font. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/font-width) + */ + fontWidth: string; /** * The forced-color-adjust CSS property allows authors to opt certain elements out of forced colors mode. This then restores the control of those values to CSS. * @@ -9041,6 +9065,12 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/ruby-align) */ rubyAlign: string; + /** + * The ruby-overhang CSS property specifies whether or not a annotation overhangs any surrounding text. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/ruby-overhang) + */ + rubyOverhang: string; /** * The ruby-position CSS property defines the position of a ruby element relative to its base element. It can be positioned over the element (over), under it (under), or between the characters on their right side (inter-character). * @@ -12882,6 +12912,12 @@ interface DeviceMotionEvent extends Event { declare var DeviceMotionEvent: { prototype: DeviceMotionEvent; new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; + /** + * The **`requestPermission()`** static method of the DeviceMotionEvent interface requests the user's permission to access device motion data from the accelerometer and gyroscope sensors. This method requires transient activation, meaning that it must be triggered by a UI event such as a button click. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/requestPermission_static) + */ + requestPermission(): Promise; }; /** @@ -12974,6 +13010,12 @@ interface DeviceOrientationEvent extends Event { declare var DeviceOrientationEvent: { prototype: DeviceOrientationEvent; new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; + /** + * The **`requestPermission()`** static method of the DeviceOrientationEvent interface requests the user's permission to access device orientation data from the accelerometer and gyroscope sensors. It can also request permission to access magnetometer data when absolute orientation is needed. This method requires transient activation, meaning that it must be triggered by a UI event such as a button click. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/requestPermission_static) + */ + requestPermission(absolute?: boolean): Promise; }; /** Available only in secure contexts. */ @@ -13659,6 +13701,12 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve declare var Document: { prototype: Document; new(): Document; + /** + * The **`parseHTML()`** static method of the Document object provides an XSS-safe method to parse and sanitize a string of HTML in order to create a new Document instance. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTML_static) + */ + parseHTML(html: string, options?: SetHTMLOptions): Document; /** * The **`parseHTMLUnsafe()`** static method of the Document object is used to parse HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance. * @@ -17770,6 +17818,7 @@ declare var HTMLBaseElement: { }; interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap { + "orientationchange": Event; } /** @@ -17787,6 +17836,8 @@ interface HTMLBodyElement extends HTMLElement, WindowEventHandlers { /** @deprecated */ link: string; /** @deprecated */ + onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null; + /** @deprecated */ text: string; /** @deprecated */ vLink: string; @@ -21105,6 +21156,23 @@ declare var HTMLSelectElement: { new(): HTMLSelectElement; }; +/** + * The **`HTMLSelectedContentElement`** interface represents a element in the DOM. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectedContentElement) + */ +interface HTMLSelectedContentElement extends HTMLElement { + addEventListener(type: K, listener: (this: HTMLSelectedContentElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: HTMLSelectedContentElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLSelectedContentElement: { + prototype: HTMLSelectedContentElement; + new(): HTMLSelectedContentElement; +}; + /** * The **`HTMLSlotElement`** interface of the Shadow DOM API enables access to the name and assigned nodes of an HTML element. * @@ -21810,6 +21878,8 @@ interface HTMLTemplateElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSerializable) */ shadowRootSerializable: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSlotAssignment) */ + shadowRootSlotAssignment: string; addEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -22781,6 +22851,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -22963,6 +23039,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -23026,6 +23108,18 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -28614,6 +28708,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -29709,6 +29805,7 @@ interface RTCDtlsTransport extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) */ readonly state: RTCDtlsTransportState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/getRemoteCertificates) */ getRemoteCertificates(): ArrayBuffer[]; addEventListener(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -29954,12 +30051,12 @@ declare var RTCIceCandidate: { new(candidateInitDict?: RTCLocalIceCandidateInit): RTCIceCandidate; }; -/** The **`RTCIceCandidatePair`** dictionary describes a pair of ICE candidates which together comprise a description of a viable connection between two WebRTC endpoints. It is used as the return value from RTCIceTransport.getSelectedCandidatePair() to identify the currently-selected candidate pair identified by the ICE agent. */ +/** + * The **`RTCIceCandidatePair`** dictionary describes a pair of ICE candidates which together comprise a description of a viable connection between two WebRTC endpoints. It is used as the return value from RTCIceTransport.getSelectedCandidatePair() to identify the currently-selected candidate pair identified by the ICE agent. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidatePair) + */ interface RTCIceCandidatePair { - /** The **`local`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate which describes the configuration of the local end of a viable WebRTC connection. */ - local: RTCIceCandidate; - /** The **`remote`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate describing the configuration of the remote end of a viable WebRTC connection. */ - remote: RTCIceCandidate; } interface RTCIceTransportEventMap { @@ -30915,6 +31012,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: any): ReadableStream; }; /** @@ -36061,6 +36164,12 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/getHTML) */ getHTML(options?: GetHTMLOptions): string; + /** + * The **`setHTML()`** method of the ShadowRoot interface provides an XSS-safe method to parse and sanitize a string of HTML, which then replaces the existing tree in the Shadow DOM. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTML) + */ + setHTML(html: string, options?: SetHTMLOptions): void; /** * The **`setHTMLUnsafe()`** method of the ShadowRoot interface can be used to parse HTML input into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM. * @@ -37904,6 +38013,8 @@ declare var TransformStreamDefaultController: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent) */ interface TransitionEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/animation) */ + readonly animation: CSSTransition | null; /** * The **`TransitionEvent.elapsedTime`** read-only property is a float giving the amount of time the animation has been running, in seconds, when this event fired. This value is not affected by the transition-delay property. * @@ -38423,13 +38534,21 @@ declare var VTTCue: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion) */ interface VTTRegion { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/id) */ id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/lines) */ lines: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorX) */ regionAnchorX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorY) */ regionAnchorY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/scroll) */ scroll: ScrollSetting; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorX) */ viewportAnchorX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorY) */ viewportAnchorY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/width) */ width: number; } @@ -41710,6 +41829,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; + readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -41747,6 +41867,8 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ + createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -41841,6 +41963,8 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ + createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -41848,6 +41972,23 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) + */ +interface WebTransportDatagramsWritable extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ + sendGroup: WebTransportSendGroup | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ + sendOrder: number; +} + +declare var WebTransportDatagramsWritable: { + prototype: WebTransportDatagramsWritable; + new(): WebTransportDatagramsWritable; +}; + /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -41894,6 +42035,21 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) + */ +interface WebTransportSendGroup { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ + getStats(): Promise; +} + +declare var WebTransportSendGroup: { + prototype: WebTransportSendGroup; + new(): WebTransportSendGroup; +}; + /** * 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. @@ -41901,6 +42057,7 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -43103,60 +43260,70 @@ declare var XPathResult: { /** * An **`XSLTProcessor`** applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output. It has methods to load the XSLT stylesheet, to manipulate parameter values, and to apply the transformation to documents. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor) */ interface XSLTProcessor { /** * The **`clearParameters()`** method of the XSLTProcessor interface removes all parameters () and their values from the stylesheet imported in the processor. The XSLTProcessor will then use the default values specified in the XSLT stylesheet. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/clearParameters) */ clearParameters(): void; /** * The **`getParameter()`** method of the XSLTProcessor interface returns the value of a parameter () from the stylesheet imported in the processor. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/getParameter) */ getParameter(namespaceURI: string | null, localName: string): any; /** * The **`importStylesheet()`** method of the XSLTProcessor interface imports an XSLT stylesheet for the processor. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/importStylesheet) */ importStylesheet(style: Node): void; /** * The **`removeParameter()`** method of the XSLTProcessor interface removes the parameter () and its value from the stylesheet imported in the processor. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/removeParameter) */ removeParameter(namespaceURI: string | null, localName: string): void; /** * The **`reset()`** method of the XSLTProcessor interface removes all parameters () and the XSLT stylesheet from the processor. The XSLTProcessor will then be in its original state when it was created. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/reset) */ reset(): void; /** * The **`setParameter()`** method of the XSLTProcessor interface sets the value of a parameter () in the stylesheet imported in the processor. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/setParameter) */ setParameter(namespaceURI: string | null, localName: string, value: any): void; /** * The **`transformToDocument()`** method of the XSLTProcessor interface transforms the provided Node source to a Document using the XSLT stylesheet associated with XSLTProcessor. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToDocument) */ transformToDocument(source: Node): Document; /** * The **`transformToFragment()`** method of the XSLTProcessor interface transforms a provided Node source to a DocumentFragment using the XSLT stylesheet associated with the XSLTProcessor. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToFragment) */ transformToFragment(source: Node, output: Document): DocumentFragment; } +/** @deprecated */ declare var XSLTProcessor: { prototype: XSLTProcessor; new(): XSLTProcessor; @@ -44054,6 +44221,7 @@ interface HTMLElementTagNameMap { "search": HTMLElement; "section": HTMLElement; "select": HTMLSelectElement; + "selectedcontent": HTMLSelectedContentElement; "slot": HTMLSlotElement; "small": HTMLElement; "source": HTMLSourceElement; @@ -45111,7 +45279,7 @@ type SanitizerPI = string | SanitizerProcessingInstruction; type SelectionDirection = "forward" | "backward" | "none"; type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index 8cb951d64..eb94d42ab 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -660,6 +660,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -997,6 +1003,25 @@ interface ResponseInit { statusText?: string; } +interface RouterCondition { + not?: RouterCondition; + or?: RouterCondition[]; + requestDestination?: RequestDestination; + requestMethod?: string; + requestMode?: RequestMode; + runningStatus?: RunningStatus; + urlPattern?: URLPatternCompatible; +} + +interface RouterRule { + condition: RouterCondition; + source: RouterSource; +} + +interface RouterSourceDict { + cacheName?: string; +} + interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } @@ -1252,6 +1277,7 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { + sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -6165,6 +6191,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -6347,6 +6379,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -6410,6 +6448,18 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -6661,6 +6711,25 @@ interface ImportMeta { resolve(specifier: string): string; } +/** + * The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent) + */ +interface InstallEvent extends ExtendableEvent { + /** + * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | RouterRule[]): Promise; +} + +declare var InstallEvent: { + prototype: InstallEvent; + new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent; +}; + /** * The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime. * @@ -7757,6 +7826,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -8213,6 +8284,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: any): ReadableStream; }; /** @@ -12297,6 +12374,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; + readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -12334,6 +12412,8 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ + createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -12428,6 +12508,8 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ + createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -12435,6 +12517,23 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) + */ +interface WebTransportDatagramsWritable extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ + sendGroup: WebTransportSendGroup | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ + sendOrder: number; +} + +declare var WebTransportDatagramsWritable: { + prototype: WebTransportDatagramsWritable; + new(): WebTransportDatagramsWritable; +}; + /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -12481,6 +12580,21 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) + */ +interface WebTransportSendGroup { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ + getStats(): Promise; +} + +declare var WebTransportSendGroup: { + prototype: WebTransportSendGroup; + new(): WebTransportSendGroup; +}; + /** * 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. @@ -12488,6 +12602,7 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -13616,9 +13731,11 @@ type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableSt type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type ReportList = Report[]; type RequestInfo = Request | string; +type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | WebTransportDatagramsWritable | ArrayBuffer; +type URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -13716,6 +13833,8 @@ type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; +type RouterSourceEnum = "cache" | "fetch-event" | "network" | "race-network-and-fetch-handler"; +type RunningStatus = "not-running" | "running"; type SecurityPolicyViolationEventDisposition = "enforce" | "report"; type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; @@ -13910,6 +14029,15 @@ interface IDBObjectStore { createIndex(name: string, keyPath: string | Iterable, options?: IDBIndexParameters): IDBIndex; } +interface InstallEvent { + /** + * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | Iterable): Promise; +} + interface MessageEvent { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index 5b0dd9d68..994b116e1 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -604,6 +604,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -1182,6 +1188,7 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { + sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -5848,6 +5855,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -6030,6 +6043,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -6093,6 +6112,18 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -7415,6 +7446,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -7796,6 +7829,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: any): ReadableStream; }; /** @@ -11840,6 +11879,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; + readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -11877,6 +11917,8 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ + createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -11971,6 +12013,8 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ + createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -11978,6 +12022,23 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) + */ +interface WebTransportDatagramsWritable extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ + sendGroup: WebTransportSendGroup | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ + sendOrder: number; +} + +declare var WebTransportDatagramsWritable: { + prototype: WebTransportDatagramsWritable; + new(): WebTransportDatagramsWritable; +}; + /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -12024,6 +12085,21 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) + */ +interface WebTransportSendGroup { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ + getStats(): Promise; +} + +declare var WebTransportSendGroup: { + prototype: WebTransportSendGroup; + new(): WebTransportSendGroup; +}; + /** * 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. @@ -12031,6 +12107,7 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -13306,7 +13383,7 @@ type ReportList = Report[]; type RequestInfo = Request | string; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | WebTransportDatagramsWritable | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; diff --git a/baselines/ts5.5/audioworklet.generated.d.ts b/baselines/ts5.5/audioworklet.generated.d.ts index b60857baa..ffcf58dc5 100644 --- a/baselines/ts5.5/audioworklet.generated.d.ts +++ b/baselines/ts5.5/audioworklet.generated.d.ts @@ -959,6 +959,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: any): ReadableStream; }; /** diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 786600574..dc1f145c9 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -333,6 +333,11 @@ interface BlobPropertyBag { type?: string; } +interface CSSContainerCondition { + name: string; + query: string; +} + interface CSSMatrixComponentOptions { is2D?: boolean; } @@ -1261,6 +1266,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -3246,6 +3257,7 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { + sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -4051,6 +4063,8 @@ declare var AnimationEffect: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent) */ interface AnimationEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animation) */ + readonly animation: CSSAnimation | null; /** * The **`AnimationEvent.animationName`** read-only property is a string containing the value of the animation-name CSS property associated with the transition. * @@ -5594,6 +5608,8 @@ declare var CSSConditionRule: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule) */ interface CSSContainerRule extends CSSConditionRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/conditions) */ + readonly conditions: ReadonlyArray; /** * The read-only **`containerName`** property of the CSSContainerRule interface represents the container name of the associated CSS @container at-rule. * @@ -5704,12 +5720,14 @@ interface CSSFontFaceDescriptors extends CSSStyleDeclarationBase { "font-stretch": string; "font-style": string; "font-weight": string; + "font-width": string; fontDisplay: string; fontFamily: string; fontFeatureSettings: string; fontStretch: string; fontStyle: string; fontWeight: string; + fontWidth: string; "size-adjust": string; sizeAdjust: string; src: string; @@ -8140,6 +8158,12 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/font-weight) */ fontWeight: string; + /** + * The font-width CSS property selects a normal, condensed, or expanded face from a font. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/font-width) + */ + fontWidth: string; /** * The forced-color-adjust CSS property allows authors to opt certain elements out of forced colors mode. This then restores the control of those values to CSS. * @@ -9031,6 +9055,12 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/ruby-align) */ rubyAlign: string; + /** + * The ruby-overhang CSS property specifies whether or not a annotation overhangs any surrounding text. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/ruby-overhang) + */ + rubyOverhang: string; /** * The ruby-position CSS property defines the position of a ruby element relative to its base element. It can be positioned over the element (over), under it (under), or between the characters on their right side (inter-character). * @@ -12871,6 +12901,12 @@ interface DeviceMotionEvent extends Event { declare var DeviceMotionEvent: { prototype: DeviceMotionEvent; new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; + /** + * The **`requestPermission()`** static method of the DeviceMotionEvent interface requests the user's permission to access device motion data from the accelerometer and gyroscope sensors. This method requires transient activation, meaning that it must be triggered by a UI event such as a button click. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/requestPermission_static) + */ + requestPermission(): Promise; }; /** @@ -12963,6 +12999,12 @@ interface DeviceOrientationEvent extends Event { declare var DeviceOrientationEvent: { prototype: DeviceOrientationEvent; new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; + /** + * The **`requestPermission()`** static method of the DeviceOrientationEvent interface requests the user's permission to access device orientation data from the accelerometer and gyroscope sensors. It can also request permission to access magnetometer data when absolute orientation is needed. This method requires transient activation, meaning that it must be triggered by a UI event such as a button click. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/requestPermission_static) + */ + requestPermission(absolute?: boolean): Promise; }; /** Available only in secure contexts. */ @@ -13648,6 +13690,12 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve declare var Document: { prototype: Document; new(): Document; + /** + * The **`parseHTML()`** static method of the Document object provides an XSS-safe method to parse and sanitize a string of HTML in order to create a new Document instance. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTML_static) + */ + parseHTML(html: string, options?: SetHTMLOptions): Document; /** * The **`parseHTMLUnsafe()`** static method of the Document object is used to parse HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance. * @@ -17754,6 +17802,7 @@ declare var HTMLBaseElement: { }; interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap { + "orientationchange": Event; } /** @@ -17771,6 +17820,8 @@ interface HTMLBodyElement extends HTMLElement, WindowEventHandlers { /** @deprecated */ link: string; /** @deprecated */ + onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null; + /** @deprecated */ text: string; /** @deprecated */ vLink: string; @@ -21082,6 +21133,23 @@ declare var HTMLSelectElement: { new(): HTMLSelectElement; }; +/** + * The **`HTMLSelectedContentElement`** interface represents a element in the DOM. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectedContentElement) + */ +interface HTMLSelectedContentElement extends HTMLElement { + addEventListener(type: K, listener: (this: HTMLSelectedContentElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: HTMLSelectedContentElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLSelectedContentElement: { + prototype: HTMLSelectedContentElement; + new(): HTMLSelectedContentElement; +}; + /** * The **`HTMLSlotElement`** interface of the Shadow DOM API enables access to the name and assigned nodes of an HTML element. * @@ -21786,6 +21854,8 @@ interface HTMLTemplateElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSerializable) */ shadowRootSerializable: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSlotAssignment) */ + shadowRootSlotAssignment: string; addEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -22757,6 +22827,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -22939,6 +23015,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -23002,6 +23084,18 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -28590,6 +28684,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -29685,6 +29781,7 @@ interface RTCDtlsTransport extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) */ readonly state: RTCDtlsTransportState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/getRemoteCertificates) */ getRemoteCertificates(): ArrayBuffer[]; addEventListener(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -29930,12 +30027,12 @@ declare var RTCIceCandidate: { new(candidateInitDict?: RTCLocalIceCandidateInit): RTCIceCandidate; }; -/** The **`RTCIceCandidatePair`** dictionary describes a pair of ICE candidates which together comprise a description of a viable connection between two WebRTC endpoints. It is used as the return value from RTCIceTransport.getSelectedCandidatePair() to identify the currently-selected candidate pair identified by the ICE agent. */ +/** + * The **`RTCIceCandidatePair`** dictionary describes a pair of ICE candidates which together comprise a description of a viable connection between two WebRTC endpoints. It is used as the return value from RTCIceTransport.getSelectedCandidatePair() to identify the currently-selected candidate pair identified by the ICE agent. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidatePair) + */ interface RTCIceCandidatePair { - /** The **`local`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate which describes the configuration of the local end of a viable WebRTC connection. */ - local: RTCIceCandidate; - /** The **`remote`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate describing the configuration of the remote end of a viable WebRTC connection. */ - remote: RTCIceCandidate; } interface RTCIceTransportEventMap { @@ -30891,6 +30988,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: any): ReadableStream; }; /** @@ -36036,6 +36139,12 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/getHTML) */ getHTML(options?: GetHTMLOptions): string; + /** + * The **`setHTML()`** method of the ShadowRoot interface provides an XSS-safe method to parse and sanitize a string of HTML, which then replaces the existing tree in the Shadow DOM. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTML) + */ + setHTML(html: string, options?: SetHTMLOptions): void; /** * The **`setHTMLUnsafe()`** method of the ShadowRoot interface can be used to parse HTML input into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM. * @@ -37878,6 +37987,8 @@ declare var TransformStreamDefaultController: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent) */ interface TransitionEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/animation) */ + readonly animation: CSSTransition | null; /** * The **`TransitionEvent.elapsedTime`** read-only property is a float giving the amount of time the animation has been running, in seconds, when this event fired. This value is not affected by the transition-delay property. * @@ -38397,13 +38508,21 @@ declare var VTTCue: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion) */ interface VTTRegion { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/id) */ id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/lines) */ lines: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorX) */ regionAnchorX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorY) */ regionAnchorY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/scroll) */ scroll: ScrollSetting; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorX) */ viewportAnchorX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorY) */ viewportAnchorY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/width) */ width: number; } @@ -41684,6 +41803,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; + readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -41721,6 +41841,8 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ + createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -41815,6 +41937,8 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ + createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -41822,6 +41946,23 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) + */ +interface WebTransportDatagramsWritable extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ + sendGroup: WebTransportSendGroup | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ + sendOrder: number; +} + +declare var WebTransportDatagramsWritable: { + prototype: WebTransportDatagramsWritable; + new(): WebTransportDatagramsWritable; +}; + /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -41868,6 +42009,21 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) + */ +interface WebTransportSendGroup { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ + getStats(): Promise; +} + +declare var WebTransportSendGroup: { + prototype: WebTransportSendGroup; + new(): WebTransportSendGroup; +}; + /** * 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. @@ -41875,6 +42031,7 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -43077,60 +43234,70 @@ declare var XPathResult: { /** * An **`XSLTProcessor`** applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output. It has methods to load the XSLT stylesheet, to manipulate parameter values, and to apply the transformation to documents. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor) */ interface XSLTProcessor { /** * The **`clearParameters()`** method of the XSLTProcessor interface removes all parameters () and their values from the stylesheet imported in the processor. The XSLTProcessor will then use the default values specified in the XSLT stylesheet. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/clearParameters) */ clearParameters(): void; /** * The **`getParameter()`** method of the XSLTProcessor interface returns the value of a parameter () from the stylesheet imported in the processor. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/getParameter) */ getParameter(namespaceURI: string | null, localName: string): any; /** * The **`importStylesheet()`** method of the XSLTProcessor interface imports an XSLT stylesheet for the processor. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/importStylesheet) */ importStylesheet(style: Node): void; /** * The **`removeParameter()`** method of the XSLTProcessor interface removes the parameter () and its value from the stylesheet imported in the processor. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/removeParameter) */ removeParameter(namespaceURI: string | null, localName: string): void; /** * The **`reset()`** method of the XSLTProcessor interface removes all parameters () and the XSLT stylesheet from the processor. The XSLTProcessor will then be in its original state when it was created. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/reset) */ reset(): void; /** * The **`setParameter()`** method of the XSLTProcessor interface sets the value of a parameter () in the stylesheet imported in the processor. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/setParameter) */ setParameter(namespaceURI: string | null, localName: string, value: any): void; /** * The **`transformToDocument()`** method of the XSLTProcessor interface transforms the provided Node source to a Document using the XSLT stylesheet associated with XSLTProcessor. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToDocument) */ transformToDocument(source: Node): Document; /** * The **`transformToFragment()`** method of the XSLTProcessor interface transforms a provided Node source to a DocumentFragment using the XSLT stylesheet associated with the XSLTProcessor. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToFragment) */ transformToFragment(source: Node, output: Document): DocumentFragment; } +/** @deprecated */ declare var XSLTProcessor: { prototype: XSLTProcessor; new(): XSLTProcessor; @@ -44028,6 +44195,7 @@ interface HTMLElementTagNameMap { "search": HTMLElement; "section": HTMLElement; "select": HTMLSelectElement; + "selectedcontent": HTMLSelectedContentElement; "slot": HTMLSlotElement; "small": HTMLElement; "source": HTMLSourceElement; @@ -45085,7 +45253,7 @@ type SanitizerPI = string | SanitizerProcessingInstruction; type SelectionDirection = "forward" | "backward" | "none"; type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index a0d7fea68..78ab3cea9 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -657,6 +657,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -994,6 +1000,25 @@ interface ResponseInit { statusText?: string; } +interface RouterCondition { + not?: RouterCondition; + or?: RouterCondition[]; + requestDestination?: RequestDestination; + requestMethod?: string; + requestMode?: RequestMode; + runningStatus?: RunningStatus; + urlPattern?: URLPatternCompatible; +} + +interface RouterRule { + condition: RouterCondition; + source: RouterSource; +} + +interface RouterSourceDict { + cacheName?: string; +} + interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } @@ -1249,6 +1274,7 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { + sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -6162,6 +6188,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -6344,6 +6376,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -6407,6 +6445,18 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -6658,6 +6708,25 @@ interface ImportMeta { resolve(specifier: string): string; } +/** + * The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent) + */ +interface InstallEvent extends ExtendableEvent { + /** + * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | RouterRule[]): Promise; +} + +declare var InstallEvent: { + prototype: InstallEvent; + new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent; +}; + /** * The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime. * @@ -7754,6 +7823,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -8210,6 +8281,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: any): ReadableStream; }; /** @@ -12294,6 +12371,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; + readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -12331,6 +12409,8 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ + createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -12425,6 +12505,8 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ + createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -12432,6 +12514,23 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) + */ +interface WebTransportDatagramsWritable extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ + sendGroup: WebTransportSendGroup | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ + sendOrder: number; +} + +declare var WebTransportDatagramsWritable: { + prototype: WebTransportDatagramsWritable; + new(): WebTransportDatagramsWritable; +}; + /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -12478,6 +12577,21 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) + */ +interface WebTransportSendGroup { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ + getStats(): Promise; +} + +declare var WebTransportSendGroup: { + prototype: WebTransportSendGroup; + new(): WebTransportSendGroup; +}; + /** * 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. @@ -12485,6 +12599,7 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -13613,9 +13728,11 @@ type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableSt type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type ReportList = Report[]; type RequestInfo = Request | string; +type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | WebTransportDatagramsWritable | ArrayBuffer; +type URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -13713,6 +13830,8 @@ type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; +type RouterSourceEnum = "cache" | "fetch-event" | "network" | "race-network-and-fetch-handler"; +type RunningStatus = "not-running" | "running"; type SecurityPolicyViolationEventDisposition = "enforce" | "report"; type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; diff --git a/baselines/ts5.5/serviceworker.iterable.generated.d.ts b/baselines/ts5.5/serviceworker.iterable.generated.d.ts index 926cc2790..7bb89a1fb 100644 --- a/baselines/ts5.5/serviceworker.iterable.generated.d.ts +++ b/baselines/ts5.5/serviceworker.iterable.generated.d.ts @@ -171,6 +171,15 @@ interface IDBObjectStore { createIndex(name: string, keyPath: string | Iterable, options?: IDBIndexParameters): IDBIndex; } +interface InstallEvent { + /** + * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | Iterable): Promise; +} + interface MessageEvent { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index f6424baa7..fadacc621 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -601,6 +601,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -1179,6 +1185,7 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { + sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -5845,6 +5852,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -6027,6 +6040,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -6090,6 +6109,18 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -7412,6 +7443,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -7793,6 +7826,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: any): ReadableStream; }; /** @@ -11837,6 +11876,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; + readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -11874,6 +11914,8 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ + createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -11968,6 +12010,8 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ + createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -11975,6 +12019,23 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) + */ +interface WebTransportDatagramsWritable extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ + sendGroup: WebTransportSendGroup | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ + sendOrder: number; +} + +declare var WebTransportDatagramsWritable: { + prototype: WebTransportDatagramsWritable; + new(): WebTransportDatagramsWritable; +}; + /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -12021,6 +12082,21 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) + */ +interface WebTransportSendGroup { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ + getStats(): Promise; +} + +declare var WebTransportSendGroup: { + prototype: WebTransportSendGroup; + new(): WebTransportSendGroup; +}; + /** * 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. @@ -12028,6 +12104,7 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -13303,7 +13380,7 @@ type ReportList = Report[]; type RequestInfo = Request | string; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | WebTransportDatagramsWritable | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index 7ec31a503..ba345d3dd 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -748,6 +748,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -1145,6 +1151,25 @@ interface ResponseInit { statusText?: string; } +interface RouterCondition { + not?: RouterCondition; + or?: RouterCondition[]; + requestDestination?: RequestDestination; + requestMethod?: string; + requestMode?: RequestMode; + runningStatus?: RunningStatus; + urlPattern?: URLPatternCompatible; +} + +interface RouterRule { + condition: RouterCondition; + source: RouterSource; +} + +interface RouterSourceDict { + cacheName?: string; +} + interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } @@ -1526,6 +1551,7 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { + sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -6893,6 +6919,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -7075,6 +7107,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -7138,6 +7176,18 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -7528,6 +7578,25 @@ interface ImportMeta { resolve(specifier: string): string; } +/** + * The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent) + */ +interface InstallEvent extends ExtendableEvent { + /** + * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | RouterRule[]): Promise; +} + +declare var InstallEvent: { + prototype: InstallEvent; + new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent; +}; + /** * The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime. * @@ -8656,6 +8725,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -9361,6 +9432,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: any): ReadableStream; }; /** @@ -13878,6 +13955,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; + readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -13915,6 +13993,8 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ + createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -14009,6 +14089,8 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ + createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -14016,6 +14098,23 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) + */ +interface WebTransportDatagramsWritable extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ + sendGroup: WebTransportSendGroup | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ + sendOrder: number; +} + +declare var WebTransportDatagramsWritable: { + prototype: WebTransportDatagramsWritable; + new(): WebTransportDatagramsWritable; +}; + /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -14062,6 +14161,21 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) + */ +interface WebTransportSendGroup { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ + getStats(): Promise; +} + +declare var WebTransportSendGroup: { + prototype: WebTransportSendGroup; + new(): WebTransportSendGroup; +}; + /** * 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. @@ -14069,6 +14183,7 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -15428,9 +15543,11 @@ type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableSt type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type ReportList = Report[]; type RequestInfo = Request | string; +type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; +type URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -15542,6 +15659,8 @@ type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; +type RouterSourceEnum = "cache" | "fetch-event" | "network" | "race-network-and-fetch-handler"; +type RunningStatus = "not-running" | "running"; type SecurityPolicyViolationEventDisposition = "enforce" | "report"; type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; diff --git a/baselines/ts5.5/webworker.iterable.generated.d.ts b/baselines/ts5.5/webworker.iterable.generated.d.ts index 606e6c3cd..bb471a7be 100644 --- a/baselines/ts5.5/webworker.iterable.generated.d.ts +++ b/baselines/ts5.5/webworker.iterable.generated.d.ts @@ -175,6 +175,15 @@ interface ImageTrackList { [Symbol.iterator](): IterableIterator; } +interface InstallEvent { + /** + * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | Iterable): Promise; +} + interface MessageEvent { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; diff --git a/baselines/ts5.6/audioworklet.generated.d.ts b/baselines/ts5.6/audioworklet.generated.d.ts index b60857baa..ffcf58dc5 100644 --- a/baselines/ts5.6/audioworklet.generated.d.ts +++ b/baselines/ts5.6/audioworklet.generated.d.ts @@ -959,6 +959,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: any): ReadableStream; }; /** diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index f638cdd60..47a553229 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -333,6 +333,11 @@ interface BlobPropertyBag { type?: string; } +interface CSSContainerCondition { + name: string; + query: string; +} + interface CSSMatrixComponentOptions { is2D?: boolean; } @@ -1261,6 +1266,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -3246,6 +3257,7 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { + sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -4051,6 +4063,8 @@ declare var AnimationEffect: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent) */ interface AnimationEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animation) */ + readonly animation: CSSAnimation | null; /** * The **`AnimationEvent.animationName`** read-only property is a string containing the value of the animation-name CSS property associated with the transition. * @@ -5594,6 +5608,8 @@ declare var CSSConditionRule: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule) */ interface CSSContainerRule extends CSSConditionRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/conditions) */ + readonly conditions: ReadonlyArray; /** * The read-only **`containerName`** property of the CSSContainerRule interface represents the container name of the associated CSS @container at-rule. * @@ -5704,12 +5720,14 @@ interface CSSFontFaceDescriptors extends CSSStyleDeclarationBase { "font-stretch": string; "font-style": string; "font-weight": string; + "font-width": string; fontDisplay: string; fontFamily: string; fontFeatureSettings: string; fontStretch: string; fontStyle: string; fontWeight: string; + fontWidth: string; "size-adjust": string; sizeAdjust: string; src: string; @@ -8147,6 +8165,12 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/font-weight) */ fontWeight: string; + /** + * The font-width CSS property selects a normal, condensed, or expanded face from a font. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/font-width) + */ + fontWidth: string; /** * The forced-color-adjust CSS property allows authors to opt certain elements out of forced colors mode. This then restores the control of those values to CSS. * @@ -9038,6 +9062,12 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/ruby-align) */ rubyAlign: string; + /** + * The ruby-overhang CSS property specifies whether or not a annotation overhangs any surrounding text. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/ruby-overhang) + */ + rubyOverhang: string; /** * The ruby-position CSS property defines the position of a ruby element relative to its base element. It can be positioned over the element (over), under it (under), or between the characters on their right side (inter-character). * @@ -12879,6 +12909,12 @@ interface DeviceMotionEvent extends Event { declare var DeviceMotionEvent: { prototype: DeviceMotionEvent; new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; + /** + * The **`requestPermission()`** static method of the DeviceMotionEvent interface requests the user's permission to access device motion data from the accelerometer and gyroscope sensors. This method requires transient activation, meaning that it must be triggered by a UI event such as a button click. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/requestPermission_static) + */ + requestPermission(): Promise; }; /** @@ -12971,6 +13007,12 @@ interface DeviceOrientationEvent extends Event { declare var DeviceOrientationEvent: { prototype: DeviceOrientationEvent; new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; + /** + * The **`requestPermission()`** static method of the DeviceOrientationEvent interface requests the user's permission to access device orientation data from the accelerometer and gyroscope sensors. It can also request permission to access magnetometer data when absolute orientation is needed. This method requires transient activation, meaning that it must be triggered by a UI event such as a button click. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/requestPermission_static) + */ + requestPermission(absolute?: boolean): Promise; }; /** Available only in secure contexts. */ @@ -13656,6 +13698,12 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve declare var Document: { prototype: Document; new(): Document; + /** + * The **`parseHTML()`** static method of the Document object provides an XSS-safe method to parse and sanitize a string of HTML in order to create a new Document instance. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTML_static) + */ + parseHTML(html: string, options?: SetHTMLOptions): Document; /** * The **`parseHTMLUnsafe()`** static method of the Document object is used to parse HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance. * @@ -17767,6 +17815,7 @@ declare var HTMLBaseElement: { }; interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap { + "orientationchange": Event; } /** @@ -17784,6 +17833,8 @@ interface HTMLBodyElement extends HTMLElement, WindowEventHandlers { /** @deprecated */ link: string; /** @deprecated */ + onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null; + /** @deprecated */ text: string; /** @deprecated */ vLink: string; @@ -21102,6 +21153,23 @@ declare var HTMLSelectElement: { new(): HTMLSelectElement; }; +/** + * The **`HTMLSelectedContentElement`** interface represents a element in the DOM. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectedContentElement) + */ +interface HTMLSelectedContentElement extends HTMLElement { + addEventListener(type: K, listener: (this: HTMLSelectedContentElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: HTMLSelectedContentElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLSelectedContentElement: { + prototype: HTMLSelectedContentElement; + new(): HTMLSelectedContentElement; +}; + /** * The **`HTMLSlotElement`** interface of the Shadow DOM API enables access to the name and assigned nodes of an HTML element. * @@ -21807,6 +21875,8 @@ interface HTMLTemplateElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSerializable) */ shadowRootSerializable: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSlotAssignment) */ + shadowRootSlotAssignment: string; addEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -22778,6 +22848,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -22960,6 +23036,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -23023,6 +23105,18 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -28611,6 +28705,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -29706,6 +29802,7 @@ interface RTCDtlsTransport extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) */ readonly state: RTCDtlsTransportState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/getRemoteCertificates) */ getRemoteCertificates(): ArrayBuffer[]; addEventListener(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -29951,12 +30048,12 @@ declare var RTCIceCandidate: { new(candidateInitDict?: RTCLocalIceCandidateInit): RTCIceCandidate; }; -/** The **`RTCIceCandidatePair`** dictionary describes a pair of ICE candidates which together comprise a description of a viable connection between two WebRTC endpoints. It is used as the return value from RTCIceTransport.getSelectedCandidatePair() to identify the currently-selected candidate pair identified by the ICE agent. */ +/** + * The **`RTCIceCandidatePair`** dictionary describes a pair of ICE candidates which together comprise a description of a viable connection between two WebRTC endpoints. It is used as the return value from RTCIceTransport.getSelectedCandidatePair() to identify the currently-selected candidate pair identified by the ICE agent. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidatePair) + */ interface RTCIceCandidatePair { - /** The **`local`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate which describes the configuration of the local end of a viable WebRTC connection. */ - local: RTCIceCandidate; - /** The **`remote`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate describing the configuration of the remote end of a viable WebRTC connection. */ - remote: RTCIceCandidate; } interface RTCIceTransportEventMap { @@ -30912,6 +31009,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: any): ReadableStream; }; /** @@ -36058,6 +36161,12 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/getHTML) */ getHTML(options?: GetHTMLOptions): string; + /** + * The **`setHTML()`** method of the ShadowRoot interface provides an XSS-safe method to parse and sanitize a string of HTML, which then replaces the existing tree in the Shadow DOM. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTML) + */ + setHTML(html: string, options?: SetHTMLOptions): void; /** * The **`setHTMLUnsafe()`** method of the ShadowRoot interface can be used to parse HTML input into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM. * @@ -37901,6 +38010,8 @@ declare var TransformStreamDefaultController: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent) */ interface TransitionEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/animation) */ + readonly animation: CSSTransition | null; /** * The **`TransitionEvent.elapsedTime`** read-only property is a float giving the amount of time the animation has been running, in seconds, when this event fired. This value is not affected by the transition-delay property. * @@ -38420,13 +38531,21 @@ declare var VTTCue: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion) */ interface VTTRegion { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/id) */ id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/lines) */ lines: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorX) */ regionAnchorX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorY) */ regionAnchorY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/scroll) */ scroll: ScrollSetting; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorX) */ viewportAnchorX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorY) */ viewportAnchorY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/width) */ width: number; } @@ -41707,6 +41826,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; + readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -41744,6 +41864,8 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ + createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -41838,6 +41960,8 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ + createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -41845,6 +41969,23 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) + */ +interface WebTransportDatagramsWritable extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ + sendGroup: WebTransportSendGroup | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ + sendOrder: number; +} + +declare var WebTransportDatagramsWritable: { + prototype: WebTransportDatagramsWritable; + new(): WebTransportDatagramsWritable; +}; + /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -41891,6 +42032,21 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) + */ +interface WebTransportSendGroup { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ + getStats(): Promise; +} + +declare var WebTransportSendGroup: { + prototype: WebTransportSendGroup; + new(): WebTransportSendGroup; +}; + /** * 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. @@ -41898,6 +42054,7 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -43100,60 +43257,70 @@ declare var XPathResult: { /** * An **`XSLTProcessor`** applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output. It has methods to load the XSLT stylesheet, to manipulate parameter values, and to apply the transformation to documents. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor) */ interface XSLTProcessor { /** * The **`clearParameters()`** method of the XSLTProcessor interface removes all parameters () and their values from the stylesheet imported in the processor. The XSLTProcessor will then use the default values specified in the XSLT stylesheet. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/clearParameters) */ clearParameters(): void; /** * The **`getParameter()`** method of the XSLTProcessor interface returns the value of a parameter () from the stylesheet imported in the processor. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/getParameter) */ getParameter(namespaceURI: string | null, localName: string): any; /** * The **`importStylesheet()`** method of the XSLTProcessor interface imports an XSLT stylesheet for the processor. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/importStylesheet) */ importStylesheet(style: Node): void; /** * The **`removeParameter()`** method of the XSLTProcessor interface removes the parameter () and its value from the stylesheet imported in the processor. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/removeParameter) */ removeParameter(namespaceURI: string | null, localName: string): void; /** * The **`reset()`** method of the XSLTProcessor interface removes all parameters () and the XSLT stylesheet from the processor. The XSLTProcessor will then be in its original state when it was created. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/reset) */ reset(): void; /** * The **`setParameter()`** method of the XSLTProcessor interface sets the value of a parameter () in the stylesheet imported in the processor. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/setParameter) */ setParameter(namespaceURI: string | null, localName: string, value: any): void; /** * The **`transformToDocument()`** method of the XSLTProcessor interface transforms the provided Node source to a Document using the XSLT stylesheet associated with XSLTProcessor. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToDocument) */ transformToDocument(source: Node): Document; /** * The **`transformToFragment()`** method of the XSLTProcessor interface transforms a provided Node source to a DocumentFragment using the XSLT stylesheet associated with the XSLTProcessor. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToFragment) */ transformToFragment(source: Node, output: Document): DocumentFragment; } +/** @deprecated */ declare var XSLTProcessor: { prototype: XSLTProcessor; new(): XSLTProcessor; @@ -44051,6 +44218,7 @@ interface HTMLElementTagNameMap { "search": HTMLElement; "section": HTMLElement; "select": HTMLSelectElement; + "selectedcontent": HTMLSelectedContentElement; "slot": HTMLSlotElement; "small": HTMLElement; "source": HTMLSourceElement; @@ -45108,7 +45276,7 @@ type SanitizerPI = string | SanitizerProcessingInstruction; type SelectionDirection = "forward" | "backward" | "none"; type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; diff --git a/baselines/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index a0d7fea68..78ab3cea9 100644 --- a/baselines/ts5.6/serviceworker.generated.d.ts +++ b/baselines/ts5.6/serviceworker.generated.d.ts @@ -657,6 +657,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -994,6 +1000,25 @@ interface ResponseInit { statusText?: string; } +interface RouterCondition { + not?: RouterCondition; + or?: RouterCondition[]; + requestDestination?: RequestDestination; + requestMethod?: string; + requestMode?: RequestMode; + runningStatus?: RunningStatus; + urlPattern?: URLPatternCompatible; +} + +interface RouterRule { + condition: RouterCondition; + source: RouterSource; +} + +interface RouterSourceDict { + cacheName?: string; +} + interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } @@ -1249,6 +1274,7 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { + sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -6162,6 +6188,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -6344,6 +6376,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -6407,6 +6445,18 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -6658,6 +6708,25 @@ interface ImportMeta { resolve(specifier: string): string; } +/** + * The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent) + */ +interface InstallEvent extends ExtendableEvent { + /** + * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | RouterRule[]): Promise; +} + +declare var InstallEvent: { + prototype: InstallEvent; + new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent; +}; + /** * The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime. * @@ -7754,6 +7823,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -8210,6 +8281,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: any): ReadableStream; }; /** @@ -12294,6 +12371,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; + readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -12331,6 +12409,8 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ + createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -12425,6 +12505,8 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ + createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -12432,6 +12514,23 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) + */ +interface WebTransportDatagramsWritable extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ + sendGroup: WebTransportSendGroup | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ + sendOrder: number; +} + +declare var WebTransportDatagramsWritable: { + prototype: WebTransportDatagramsWritable; + new(): WebTransportDatagramsWritable; +}; + /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -12478,6 +12577,21 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) + */ +interface WebTransportSendGroup { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ + getStats(): Promise; +} + +declare var WebTransportSendGroup: { + prototype: WebTransportSendGroup; + new(): WebTransportSendGroup; +}; + /** * 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. @@ -12485,6 +12599,7 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -13613,9 +13728,11 @@ type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableSt type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type ReportList = Report[]; type RequestInfo = Request | string; +type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | WebTransportDatagramsWritable | ArrayBuffer; +type URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -13713,6 +13830,8 @@ type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; +type RouterSourceEnum = "cache" | "fetch-event" | "network" | "race-network-and-fetch-handler"; +type RunningStatus = "not-running" | "running"; type SecurityPolicyViolationEventDisposition = "enforce" | "report"; type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; diff --git a/baselines/ts5.6/serviceworker.iterable.generated.d.ts b/baselines/ts5.6/serviceworker.iterable.generated.d.ts index f7b7aaf20..7fb311ec9 100644 --- a/baselines/ts5.6/serviceworker.iterable.generated.d.ts +++ b/baselines/ts5.6/serviceworker.iterable.generated.d.ts @@ -179,6 +179,15 @@ interface IDBObjectStore { createIndex(name: string, keyPath: string | Iterable, options?: IDBIndexParameters): IDBIndex; } +interface InstallEvent { + /** + * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | Iterable): Promise; +} + interface MessageEvent { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; diff --git a/baselines/ts5.6/sharedworker.generated.d.ts b/baselines/ts5.6/sharedworker.generated.d.ts index f6424baa7..fadacc621 100644 --- a/baselines/ts5.6/sharedworker.generated.d.ts +++ b/baselines/ts5.6/sharedworker.generated.d.ts @@ -601,6 +601,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -1179,6 +1185,7 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { + sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -5845,6 +5852,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -6027,6 +6040,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -6090,6 +6109,18 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -7412,6 +7443,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -7793,6 +7826,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: any): ReadableStream; }; /** @@ -11837,6 +11876,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; + readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -11874,6 +11914,8 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ + createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -11968,6 +12010,8 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ + createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -11975,6 +12019,23 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) + */ +interface WebTransportDatagramsWritable extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ + sendGroup: WebTransportSendGroup | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ + sendOrder: number; +} + +declare var WebTransportDatagramsWritable: { + prototype: WebTransportDatagramsWritable; + new(): WebTransportDatagramsWritable; +}; + /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -12021,6 +12082,21 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) + */ +interface WebTransportSendGroup { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ + getStats(): Promise; +} + +declare var WebTransportSendGroup: { + prototype: WebTransportSendGroup; + new(): WebTransportSendGroup; +}; + /** * 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. @@ -12028,6 +12104,7 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -13303,7 +13380,7 @@ type ReportList = Report[]; type RequestInfo = Request | string; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | WebTransportDatagramsWritable | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index 7ec31a503..ba345d3dd 100644 --- a/baselines/ts5.6/webworker.generated.d.ts +++ b/baselines/ts5.6/webworker.generated.d.ts @@ -748,6 +748,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -1145,6 +1151,25 @@ interface ResponseInit { statusText?: string; } +interface RouterCondition { + not?: RouterCondition; + or?: RouterCondition[]; + requestDestination?: RequestDestination; + requestMethod?: string; + requestMode?: RequestMode; + runningStatus?: RunningStatus; + urlPattern?: URLPatternCompatible; +} + +interface RouterRule { + condition: RouterCondition; + source: RouterSource; +} + +interface RouterSourceDict { + cacheName?: string; +} + interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } @@ -1526,6 +1551,7 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { + sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -6893,6 +6919,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -7075,6 +7107,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -7138,6 +7176,18 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -7528,6 +7578,25 @@ interface ImportMeta { resolve(specifier: string): string; } +/** + * The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent) + */ +interface InstallEvent extends ExtendableEvent { + /** + * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | RouterRule[]): Promise; +} + +declare var InstallEvent: { + prototype: InstallEvent; + new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent; +}; + /** * The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime. * @@ -8656,6 +8725,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -9361,6 +9432,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: any): ReadableStream; }; /** @@ -13878,6 +13955,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; + readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -13915,6 +13993,8 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ + createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -14009,6 +14089,8 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ + createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -14016,6 +14098,23 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) + */ +interface WebTransportDatagramsWritable extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ + sendGroup: WebTransportSendGroup | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ + sendOrder: number; +} + +declare var WebTransportDatagramsWritable: { + prototype: WebTransportDatagramsWritable; + new(): WebTransportDatagramsWritable; +}; + /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -14062,6 +14161,21 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) + */ +interface WebTransportSendGroup { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ + getStats(): Promise; +} + +declare var WebTransportSendGroup: { + prototype: WebTransportSendGroup; + new(): WebTransportSendGroup; +}; + /** * 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. @@ -14069,6 +14183,7 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -15428,9 +15543,11 @@ type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableSt type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type ReportList = Report[]; type RequestInfo = Request | string; +type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; +type URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -15542,6 +15659,8 @@ type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; +type RouterSourceEnum = "cache" | "fetch-event" | "network" | "race-network-and-fetch-handler"; +type RunningStatus = "not-running" | "running"; type SecurityPolicyViolationEventDisposition = "enforce" | "report"; type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; diff --git a/baselines/ts5.6/webworker.iterable.generated.d.ts b/baselines/ts5.6/webworker.iterable.generated.d.ts index 049c52aeb..6c8d5b104 100644 --- a/baselines/ts5.6/webworker.iterable.generated.d.ts +++ b/baselines/ts5.6/webworker.iterable.generated.d.ts @@ -183,6 +183,15 @@ interface ImageTrackList { [Symbol.iterator](): ArrayIterator; } +interface InstallEvent { + /** + * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | Iterable): Promise; +} + interface MessageEvent { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; diff --git a/baselines/ts5.9/audioworklet.generated.d.ts b/baselines/ts5.9/audioworklet.generated.d.ts index 047d68b93..652a452a0 100644 --- a/baselines/ts5.9/audioworklet.generated.d.ts +++ b/baselines/ts5.9/audioworklet.generated.d.ts @@ -959,6 +959,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: any): ReadableStream; }; /** diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index 7d8edfe73..168c58de0 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -333,6 +333,11 @@ interface BlobPropertyBag { type?: string; } +interface CSSContainerCondition { + name: string; + query: string; +} + interface CSSMatrixComponentOptions { is2D?: boolean; } @@ -1261,6 +1266,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -3246,6 +3257,7 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { + sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -4051,6 +4063,8 @@ declare var AnimationEffect: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent) */ interface AnimationEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animation) */ + readonly animation: CSSAnimation | null; /** * The **`AnimationEvent.animationName`** read-only property is a string containing the value of the animation-name CSS property associated with the transition. * @@ -5594,6 +5608,8 @@ declare var CSSConditionRule: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule) */ interface CSSContainerRule extends CSSConditionRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/conditions) */ + readonly conditions: ReadonlyArray; /** * The read-only **`containerName`** property of the CSSContainerRule interface represents the container name of the associated CSS @container at-rule. * @@ -5704,12 +5720,14 @@ interface CSSFontFaceDescriptors extends CSSStyleDeclarationBase { "font-stretch": string; "font-style": string; "font-weight": string; + "font-width": string; fontDisplay: string; fontFamily: string; fontFeatureSettings: string; fontStretch: string; fontStyle: string; fontWeight: string; + fontWidth: string; "size-adjust": string; sizeAdjust: string; src: string; @@ -8147,6 +8165,12 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/font-weight) */ fontWeight: string; + /** + * The font-width CSS property selects a normal, condensed, or expanded face from a font. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/font-width) + */ + fontWidth: string; /** * The forced-color-adjust CSS property allows authors to opt certain elements out of forced colors mode. This then restores the control of those values to CSS. * @@ -9038,6 +9062,12 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/ruby-align) */ rubyAlign: string; + /** + * The ruby-overhang CSS property specifies whether or not a annotation overhangs any surrounding text. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/ruby-overhang) + */ + rubyOverhang: string; /** * The ruby-position CSS property defines the position of a ruby element relative to its base element. It can be positioned over the element (over), under it (under), or between the characters on their right side (inter-character). * @@ -12879,6 +12909,12 @@ interface DeviceMotionEvent extends Event { declare var DeviceMotionEvent: { prototype: DeviceMotionEvent; new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; + /** + * The **`requestPermission()`** static method of the DeviceMotionEvent interface requests the user's permission to access device motion data from the accelerometer and gyroscope sensors. This method requires transient activation, meaning that it must be triggered by a UI event such as a button click. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/requestPermission_static) + */ + requestPermission(): Promise; }; /** @@ -12971,6 +13007,12 @@ interface DeviceOrientationEvent extends Event { declare var DeviceOrientationEvent: { prototype: DeviceOrientationEvent; new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; + /** + * The **`requestPermission()`** static method of the DeviceOrientationEvent interface requests the user's permission to access device orientation data from the accelerometer and gyroscope sensors. It can also request permission to access magnetometer data when absolute orientation is needed. This method requires transient activation, meaning that it must be triggered by a UI event such as a button click. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/requestPermission_static) + */ + requestPermission(absolute?: boolean): Promise; }; /** Available only in secure contexts. */ @@ -13656,6 +13698,12 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve declare var Document: { prototype: Document; new(): Document; + /** + * The **`parseHTML()`** static method of the Document object provides an XSS-safe method to parse and sanitize a string of HTML in order to create a new Document instance. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTML_static) + */ + parseHTML(html: string, options?: SetHTMLOptions): Document; /** * The **`parseHTMLUnsafe()`** static method of the Document object is used to parse HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance. * @@ -17767,6 +17815,7 @@ declare var HTMLBaseElement: { }; interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap { + "orientationchange": Event; } /** @@ -17784,6 +17833,8 @@ interface HTMLBodyElement extends HTMLElement, WindowEventHandlers { /** @deprecated */ link: string; /** @deprecated */ + onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null; + /** @deprecated */ text: string; /** @deprecated */ vLink: string; @@ -21102,6 +21153,23 @@ declare var HTMLSelectElement: { new(): HTMLSelectElement; }; +/** + * The **`HTMLSelectedContentElement`** interface represents a element in the DOM. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectedContentElement) + */ +interface HTMLSelectedContentElement extends HTMLElement { + addEventListener(type: K, listener: (this: HTMLSelectedContentElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: HTMLSelectedContentElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLSelectedContentElement: { + prototype: HTMLSelectedContentElement; + new(): HTMLSelectedContentElement; +}; + /** * The **`HTMLSlotElement`** interface of the Shadow DOM API enables access to the name and assigned nodes of an HTML element. * @@ -21807,6 +21875,8 @@ interface HTMLTemplateElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSerializable) */ shadowRootSerializable: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSlotAssignment) */ + shadowRootSlotAssignment: string; addEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -22778,6 +22848,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -22960,6 +23036,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -23023,6 +23105,18 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -28611,6 +28705,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -29706,6 +29802,7 @@ interface RTCDtlsTransport extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) */ readonly state: RTCDtlsTransportState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/getRemoteCertificates) */ getRemoteCertificates(): ArrayBuffer[]; addEventListener(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -29951,12 +30048,12 @@ declare var RTCIceCandidate: { new(candidateInitDict?: RTCLocalIceCandidateInit): RTCIceCandidate; }; -/** The **`RTCIceCandidatePair`** dictionary describes a pair of ICE candidates which together comprise a description of a viable connection between two WebRTC endpoints. It is used as the return value from RTCIceTransport.getSelectedCandidatePair() to identify the currently-selected candidate pair identified by the ICE agent. */ +/** + * The **`RTCIceCandidatePair`** dictionary describes a pair of ICE candidates which together comprise a description of a viable connection between two WebRTC endpoints. It is used as the return value from RTCIceTransport.getSelectedCandidatePair() to identify the currently-selected candidate pair identified by the ICE agent. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidatePair) + */ interface RTCIceCandidatePair { - /** The **`local`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate which describes the configuration of the local end of a viable WebRTC connection. */ - local: RTCIceCandidate; - /** The **`remote`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate describing the configuration of the remote end of a viable WebRTC connection. */ - remote: RTCIceCandidate; } interface RTCIceTransportEventMap { @@ -30912,6 +31009,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: any): ReadableStream; }; /** @@ -36058,6 +36161,12 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/getHTML) */ getHTML(options?: GetHTMLOptions): string; + /** + * The **`setHTML()`** method of the ShadowRoot interface provides an XSS-safe method to parse and sanitize a string of HTML, which then replaces the existing tree in the Shadow DOM. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTML) + */ + setHTML(html: string, options?: SetHTMLOptions): void; /** * The **`setHTMLUnsafe()`** method of the ShadowRoot interface can be used to parse HTML input into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM. * @@ -37901,6 +38010,8 @@ declare var TransformStreamDefaultController: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent) */ interface TransitionEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/animation) */ + readonly animation: CSSTransition | null; /** * The **`TransitionEvent.elapsedTime`** read-only property is a float giving the amount of time the animation has been running, in seconds, when this event fired. This value is not affected by the transition-delay property. * @@ -38420,13 +38531,21 @@ declare var VTTCue: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion) */ interface VTTRegion { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/id) */ id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/lines) */ lines: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorX) */ regionAnchorX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorY) */ regionAnchorY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/scroll) */ scroll: ScrollSetting; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorX) */ viewportAnchorX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorY) */ viewportAnchorY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/width) */ width: number; } @@ -41707,6 +41826,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; + readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -41744,6 +41864,8 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ + createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -41838,6 +41960,8 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ + createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -41845,6 +41969,23 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) + */ +interface WebTransportDatagramsWritable extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ + sendGroup: WebTransportSendGroup | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ + sendOrder: number; +} + +declare var WebTransportDatagramsWritable: { + prototype: WebTransportDatagramsWritable; + new(): WebTransportDatagramsWritable; +}; + /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -41891,6 +42032,21 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) + */ +interface WebTransportSendGroup { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ + getStats(): Promise; +} + +declare var WebTransportSendGroup: { + prototype: WebTransportSendGroup; + new(): WebTransportSendGroup; +}; + /** * 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. @@ -41898,6 +42054,7 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -43100,60 +43257,70 @@ declare var XPathResult: { /** * An **`XSLTProcessor`** applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output. It has methods to load the XSLT stylesheet, to manipulate parameter values, and to apply the transformation to documents. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor) */ interface XSLTProcessor { /** * The **`clearParameters()`** method of the XSLTProcessor interface removes all parameters () and their values from the stylesheet imported in the processor. The XSLTProcessor will then use the default values specified in the XSLT stylesheet. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/clearParameters) */ clearParameters(): void; /** * The **`getParameter()`** method of the XSLTProcessor interface returns the value of a parameter () from the stylesheet imported in the processor. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/getParameter) */ getParameter(namespaceURI: string | null, localName: string): any; /** * The **`importStylesheet()`** method of the XSLTProcessor interface imports an XSLT stylesheet for the processor. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/importStylesheet) */ importStylesheet(style: Node): void; /** * The **`removeParameter()`** method of the XSLTProcessor interface removes the parameter () and its value from the stylesheet imported in the processor. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/removeParameter) */ removeParameter(namespaceURI: string | null, localName: string): void; /** * The **`reset()`** method of the XSLTProcessor interface removes all parameters () and the XSLT stylesheet from the processor. The XSLTProcessor will then be in its original state when it was created. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/reset) */ reset(): void; /** * The **`setParameter()`** method of the XSLTProcessor interface sets the value of a parameter () in the stylesheet imported in the processor. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/setParameter) */ setParameter(namespaceURI: string | null, localName: string, value: any): void; /** * The **`transformToDocument()`** method of the XSLTProcessor interface transforms the provided Node source to a Document using the XSLT stylesheet associated with XSLTProcessor. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToDocument) */ transformToDocument(source: Node): Document; /** * The **`transformToFragment()`** method of the XSLTProcessor interface transforms a provided Node source to a DocumentFragment using the XSLT stylesheet associated with the XSLTProcessor. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToFragment) */ transformToFragment(source: Node, output: Document): DocumentFragment; } +/** @deprecated */ declare var XSLTProcessor: { prototype: XSLTProcessor; new(): XSLTProcessor; @@ -44051,6 +44218,7 @@ interface HTMLElementTagNameMap { "search": HTMLElement; "section": HTMLElement; "select": HTMLSelectElement; + "selectedcontent": HTMLSelectedContentElement; "slot": HTMLSlotElement; "small": HTMLElement; "source": HTMLSourceElement; @@ -45108,7 +45276,7 @@ type SanitizerPI = string | SanitizerProcessingInstruction; type SelectionDirection = "forward" | "backward" | "none"; type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; diff --git a/baselines/ts5.9/serviceworker.generated.d.ts b/baselines/ts5.9/serviceworker.generated.d.ts index 8967aaba6..283a5af39 100644 --- a/baselines/ts5.9/serviceworker.generated.d.ts +++ b/baselines/ts5.9/serviceworker.generated.d.ts @@ -657,6 +657,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -994,6 +1000,25 @@ interface ResponseInit { statusText?: string; } +interface RouterCondition { + not?: RouterCondition; + or?: RouterCondition[]; + requestDestination?: RequestDestination; + requestMethod?: string; + requestMode?: RequestMode; + runningStatus?: RunningStatus; + urlPattern?: URLPatternCompatible; +} + +interface RouterRule { + condition: RouterCondition; + source: RouterSource; +} + +interface RouterSourceDict { + cacheName?: string; +} + interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } @@ -1249,6 +1274,7 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { + sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -6162,6 +6188,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -6344,6 +6376,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -6407,6 +6445,18 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -6658,6 +6708,25 @@ interface ImportMeta { resolve(specifier: string): string; } +/** + * The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent) + */ +interface InstallEvent extends ExtendableEvent { + /** + * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | RouterRule[]): Promise; +} + +declare var InstallEvent: { + prototype: InstallEvent; + new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent; +}; + /** * The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime. * @@ -7754,6 +7823,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -8210,6 +8281,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: any): ReadableStream; }; /** @@ -12294,6 +12371,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; + readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -12331,6 +12409,8 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ + createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -12425,6 +12505,8 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ + createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -12432,6 +12514,23 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) + */ +interface WebTransportDatagramsWritable extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ + sendGroup: WebTransportSendGroup | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ + sendOrder: number; +} + +declare var WebTransportDatagramsWritable: { + prototype: WebTransportDatagramsWritable; + new(): WebTransportDatagramsWritable; +}; + /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -12478,6 +12577,21 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) + */ +interface WebTransportSendGroup { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ + getStats(): Promise; +} + +declare var WebTransportSendGroup: { + prototype: WebTransportSendGroup; + new(): WebTransportSendGroup; +}; + /** * 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. @@ -12485,6 +12599,7 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -13613,9 +13728,11 @@ type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableSt type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type ReportList = Report[]; type RequestInfo = Request | string; +type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | WebTransportDatagramsWritable | ArrayBuffer; +type URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -13713,6 +13830,8 @@ type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; +type RouterSourceEnum = "cache" | "fetch-event" | "network" | "race-network-and-fetch-handler"; +type RunningStatus = "not-running" | "running"; type SecurityPolicyViolationEventDisposition = "enforce" | "report"; type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; diff --git a/baselines/ts5.9/serviceworker.iterable.generated.d.ts b/baselines/ts5.9/serviceworker.iterable.generated.d.ts index 55e099512..bdadc5b12 100644 --- a/baselines/ts5.9/serviceworker.iterable.generated.d.ts +++ b/baselines/ts5.9/serviceworker.iterable.generated.d.ts @@ -179,6 +179,15 @@ interface IDBObjectStore { createIndex(name: string, keyPath: string | Iterable, options?: IDBIndexParameters): IDBIndex; } +interface InstallEvent { + /** + * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | Iterable): Promise; +} + interface MessageEvent { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; diff --git a/baselines/ts5.9/sharedworker.generated.d.ts b/baselines/ts5.9/sharedworker.generated.d.ts index 5606b402f..93af5fc98 100644 --- a/baselines/ts5.9/sharedworker.generated.d.ts +++ b/baselines/ts5.9/sharedworker.generated.d.ts @@ -601,6 +601,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -1179,6 +1185,7 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { + sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -5845,6 +5852,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -6027,6 +6040,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -6090,6 +6109,18 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -7412,6 +7443,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -7793,6 +7826,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: any): ReadableStream; }; /** @@ -11837,6 +11876,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; + readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -11874,6 +11914,8 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ + createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -11968,6 +12010,8 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ + createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -11975,6 +12019,23 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) + */ +interface WebTransportDatagramsWritable extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ + sendGroup: WebTransportSendGroup | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ + sendOrder: number; +} + +declare var WebTransportDatagramsWritable: { + prototype: WebTransportDatagramsWritable; + new(): WebTransportDatagramsWritable; +}; + /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -12021,6 +12082,21 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) + */ +interface WebTransportSendGroup { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ + getStats(): Promise; +} + +declare var WebTransportSendGroup: { + prototype: WebTransportSendGroup; + new(): WebTransportSendGroup; +}; + /** * 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. @@ -12028,6 +12104,7 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -13303,7 +13380,7 @@ type ReportList = Report[]; type RequestInfo = Request | string; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | WebTransportDatagramsWritable | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; diff --git a/baselines/ts5.9/webworker.generated.d.ts b/baselines/ts5.9/webworker.generated.d.ts index 2b8ecf103..b2b0d0823 100644 --- a/baselines/ts5.9/webworker.generated.d.ts +++ b/baselines/ts5.9/webworker.generated.d.ts @@ -748,6 +748,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -1145,6 +1151,25 @@ interface ResponseInit { statusText?: string; } +interface RouterCondition { + not?: RouterCondition; + or?: RouterCondition[]; + requestDestination?: RequestDestination; + requestMethod?: string; + requestMode?: RequestMode; + runningStatus?: RunningStatus; + urlPattern?: URLPatternCompatible; +} + +interface RouterRule { + condition: RouterCondition; + source: RouterSource; +} + +interface RouterSourceDict { + cacheName?: string; +} + interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } @@ -1526,6 +1551,7 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { + sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -6893,6 +6919,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -7075,6 +7107,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -7138,6 +7176,18 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -7528,6 +7578,25 @@ interface ImportMeta { resolve(specifier: string): string; } +/** + * The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent) + */ +interface InstallEvent extends ExtendableEvent { + /** + * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | RouterRule[]): Promise; +} + +declare var InstallEvent: { + prototype: InstallEvent; + new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent; +}; + /** * The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime. * @@ -8656,6 +8725,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -9361,6 +9432,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: any): ReadableStream; }; /** @@ -13878,6 +13955,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; + readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -13915,6 +13993,8 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ + createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -14009,6 +14089,8 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ + createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -14016,6 +14098,23 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) + */ +interface WebTransportDatagramsWritable extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ + sendGroup: WebTransportSendGroup | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ + sendOrder: number; +} + +declare var WebTransportDatagramsWritable: { + prototype: WebTransportDatagramsWritable; + new(): WebTransportDatagramsWritable; +}; + /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -14062,6 +14161,21 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) + */ +interface WebTransportSendGroup { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ + getStats(): Promise; +} + +declare var WebTransportSendGroup: { + prototype: WebTransportSendGroup; + new(): WebTransportSendGroup; +}; + /** * 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. @@ -14069,6 +14183,7 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -15428,9 +15543,11 @@ type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableSt type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type ReportList = Report[]; type RequestInfo = Request | string; +type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; +type URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -15542,6 +15659,8 @@ type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; +type RouterSourceEnum = "cache" | "fetch-event" | "network" | "race-network-and-fetch-handler"; +type RunningStatus = "not-running" | "running"; type SecurityPolicyViolationEventDisposition = "enforce" | "report"; type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; diff --git a/baselines/ts5.9/webworker.iterable.generated.d.ts b/baselines/ts5.9/webworker.iterable.generated.d.ts index 4507a3906..4d43a98f1 100644 --- a/baselines/ts5.9/webworker.iterable.generated.d.ts +++ b/baselines/ts5.9/webworker.iterable.generated.d.ts @@ -183,6 +183,15 @@ interface ImageTrackList { [Symbol.iterator](): ArrayIterator; } +interface InstallEvent { + /** + * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | Iterable): Promise; +} + interface MessageEvent { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index 0596b83b3..d13dd788e 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -751,6 +751,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -1148,6 +1154,25 @@ interface ResponseInit { statusText?: string; } +interface RouterCondition { + not?: RouterCondition; + or?: RouterCondition[]; + requestDestination?: RequestDestination; + requestMethod?: string; + requestMode?: RequestMode; + runningStatus?: RunningStatus; + urlPattern?: URLPatternCompatible; +} + +interface RouterRule { + condition: RouterCondition; + source: RouterSource; +} + +interface RouterSourceDict { + cacheName?: string; +} + interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } @@ -1529,6 +1554,7 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { + sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -6896,6 +6922,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -7078,6 +7110,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -7141,6 +7179,18 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -7531,6 +7581,25 @@ interface ImportMeta { resolve(specifier: string): string; } +/** + * The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent) + */ +interface InstallEvent extends ExtendableEvent { + /** + * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | RouterRule[]): Promise; +} + +declare var InstallEvent: { + prototype: InstallEvent; + new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent; +}; + /** * The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime. * @@ -8659,6 +8728,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -9364,6 +9435,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: any): ReadableStream; }; /** @@ -13881,6 +13958,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; + readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -13918,6 +13996,8 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ + createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -14012,6 +14092,8 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ + createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -14019,6 +14101,23 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) + */ +interface WebTransportDatagramsWritable extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ + sendGroup: WebTransportSendGroup | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ + sendOrder: number; +} + +declare var WebTransportDatagramsWritable: { + prototype: WebTransportDatagramsWritable; + new(): WebTransportDatagramsWritable; +}; + /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -14065,6 +14164,21 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) + */ +interface WebTransportSendGroup { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ + getStats(): Promise; +} + +declare var WebTransportSendGroup: { + prototype: WebTransportSendGroup; + new(): WebTransportSendGroup; +}; + /** * 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. @@ -14072,6 +14186,7 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -15431,9 +15546,11 @@ type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableSt type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type ReportList = Report[]; type RequestInfo = Request | string; +type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; +type URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -15545,6 +15662,8 @@ type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; +type RouterSourceEnum = "cache" | "fetch-event" | "network" | "race-network-and-fetch-handler"; +type RunningStatus = "not-running" | "running"; type SecurityPolicyViolationEventDisposition = "enforce" | "report"; type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; @@ -15749,6 +15868,15 @@ interface ImageTrackList { [Symbol.iterator](): ArrayIterator; } +interface InstallEvent { + /** + * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | Iterable): Promise; +} + interface MessageEvent { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; diff --git a/package-lock.json b/package-lock.json index b079570b5..5b506ac7f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "Apache-2.0", "devDependencies": { "@eslint/js": "^10", - "@mdn/browser-compat-data": "^8.0.1", + "@mdn/browser-compat-data": "^8.0.13", "@octokit/rest": "^22.0.0", "@types/node": "^25.0.3", "@types/prettier": "^3.0.0", @@ -313,11 +313,12 @@ } }, "node_modules/@mdn/browser-compat-data": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-8.0.1.tgz", - "integrity": "sha512-po0/NXwUB3bc6DpYfAATqGBVwl4gfqmvWySixcBePwmOLTgsmwnwevRaIbs5glXucQLDpayGbh4C3hKIQr6l2A==", + "version": "8.0.13", + "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-8.0.13.tgz", + "integrity": "sha512-jR1x+1UHDwYUBr2JLOuLucZGyAF7XphpxFbWQoUSwKgHt2zlMidfRSJ/0C3yC7vRBxMOjJF2edptu8kz0BGWrw==", "dev": true, - "license": "CC0-1.0" + "license": "CC0-1.0", + "peer": true }, "node_modules/@octokit/auth-token": { "version": "6.0.0", @@ -334,6 +335,7 @@ "integrity": "sha512-DhGl4xMVFGVIyMwswXeyzdL4uXD5OGILGX5N8Y+f6W7LhC1Ze2poSNrkF/fedpVDHEEZ+PHFW0vL14I+mm8K3Q==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@octokit/auth-token": "^6.0.0", "@octokit/graphql": "^9.0.3", @@ -741,6 +743,7 @@ "integrity": "sha512-X6ypGChaWYk6PBtUg2BwuTZEFFcHJAtGTVJ9/lCTOufhZ4i9fNolQNnktq+kkMCwMj7V8Svsq7+TxSDslmhE0g==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@typescript-eslint/scope-manager": "8.66.0", "@typescript-eslint/types": "8.66.0", @@ -1098,9 +1101,9 @@ "license": "MIT" }, "node_modules/@webref/events": { - "version": "1.24.0", - "resolved": "https://registry.npmjs.org/@webref/events/-/events-1.24.0.tgz", - "integrity": "sha512-S2T5MLXt77Mgy+Sna6ThGDQYCvO71lg5Skh5cUgkxrz4aXUexw28rdweB+LS3OvTbY48K7AdXeOJWYSl0dk36g==", + "version": "1.18.6", + "resolved": "https://registry.npmjs.org/@webref/events/-/events-1.18.6.tgz", + "integrity": "sha512-uYcKX7k5/0lBVWirRLzKvBipxh+GdcRn9d6ufaAuE8UFB5T+v+6+gGGwyI10ULoVfTNFFimr4dNn8jJqIFMMDA==", "dev": true, "license": "MIT" }, @@ -1110,6 +1113,7 @@ "integrity": "sha512-E8xHSmlr/LyRNtyEiFHRSpWDIw6XzaPxO5Q6F/fcy9kfqJvDz2IGbardUYOoW6SGdclK1imZl5AziK555dbcIg==", "dev": true, "license": "MIT", + "peer": true, "peerDependencies": { "webidl2": "^24.5.0" } @@ -1120,6 +1124,7 @@ "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==", "dev": true, "license": "MIT", + "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -1497,6 +1502,7 @@ "integrity": "sha512-dKYCMuPO1bmrpuogcjQ8z7ICCH3FP6WmxpwC03yjzGfZhj9fTJg6+bS1+UAplekbN2C+M61UNllGOOoAfGCrdQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@octokit/auth-token": "^4.0.0", "@octokit/graphql": "^7.1.0", @@ -1770,6 +1776,7 @@ "integrity": "sha512-wqA7W2jbsC/BnV9Iv1UZpKVFkO1AdNoSmYW8NWG4HNOBbkAMvIqDZ27pI2f07dqn583NcIC44ckjAcOXDL1QbQ==", "dev": true, "license": "MIT", + "peer": true, "workspaces": [ "packages/*" ], @@ -1829,6 +1836,7 @@ "integrity": "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==", "dev": true, "license": "MIT", + "peer": true, "bin": { "eslint-config-prettier": "bin/cli.js" }, @@ -2580,8 +2588,7 @@ "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.27.1.tgz", "integrity": "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==", "dev": true, - "license": "CC0-1.0", - "peer": true + "license": "CC0-1.0" }, "node_modules/memfs-or-file-map-to-github-branch": { "version": "1.3.0", @@ -2862,6 +2869,7 @@ "integrity": "sha512-7igPTM53cGHMW8xWuVTydi2KO233VFiTNyF5hLJqpilHfmn8C8gPf+PS7dUT64YcXFbiMGZxS9pCSxL/Dxm/Jw==", "dev": true, "license": "MIT", + "peer": true, "bin": { "prettier": "bin/prettier.cjs" }, @@ -3118,7 +3126,6 @@ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", "dev": true, "license": "BSD-3-Clause", - "peer": true, "engines": { "node": ">=0.10.0" } @@ -3245,6 +3252,7 @@ "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -3302,6 +3310,7 @@ "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", "dev": true, "license": "Apache-2.0", + "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -3371,6 +3380,7 @@ "integrity": "sha512-fxOigKkIem1iAgQ9t4cFOP+kWEA8y6Be/uh50FpJh0FijoeeT/VMrOyJzNLUgjy0rGMEcHeReKDCqj0g9dIe9A==", "dev": true, "license": "W3C", + "peer": true, "engines": { "node": ">= 18" } diff --git a/package.json b/package.json index de5938782..7a8f8e774 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "type": "module", "devDependencies": { "@eslint/js": "^10", - "@mdn/browser-compat-data": "^8.0.1", + "@mdn/browser-compat-data": "^8.0.13", "@octokit/rest": "^22.0.0", "@types/node": "^25.0.3", "@types/prettier": "^3.0.0", diff --git a/src/build.ts b/src/build.ts index 166971680..4f5a57700 100644 --- a/src/build.ts +++ b/src/build.ts @@ -252,6 +252,7 @@ async function emitDom() { allowUnrelatedSetterType: true, useGenericTypedArrays: true, includeIterable: true, + treatAsyncSequence: true, }, }, // ts5.7 (and later) @@ -262,6 +263,7 @@ async function emitDom() { useIteratorObject: true, allowUnrelatedSetterType: true, useGenericTypedArrays: true, + treatAsyncSequence: true, }, }, // ts5.6 @@ -271,12 +273,15 @@ async function emitDom() { compilerBehavior: { useIteratorObject: true, allowUnrelatedSetterType: true, + treatAsyncSequence: false, }, }, // ts5.5 (and earlier) { outputFolder: new URL("./ts5.5/", outputFolder), - compilerBehavior: {}, // ts5.5 does not support `IteratorObject` or unrelated setter types + compilerBehavior: { + treatAsyncSequence: false, + }, // ts5.5 does not support `IteratorObject` or unrelated setter types }, ]; diff --git a/src/build/emitter.ts b/src/build/emitter.ts index 3b2dd2191..39a7a9bb9 100644 --- a/src/build/emitter.ts +++ b/src/build/emitter.ts @@ -132,6 +132,8 @@ export interface CompilerBehavior { allowUnrelatedSetterType?: boolean; useGenericTypedArrays?: boolean; includeIterable?: boolean; + /** If true, treat async_sequence as AsyncIterable, otherwise as any (legacy < TS 2.3 emit). */ + treatAsyncSequence?: boolean; } export function emitWebIdl( @@ -405,6 +407,24 @@ export function emitWebIdl( forReturn: boolean, ): string { function convertBaseType() { + // Support async_sequence (see https://github.com/whatwg/streams/pull/1372) + if (obj.type === "async_sequence") { + // If we're in a build that includes async iterables (TS 2.3+ or forced), emit as AsyncIterable. + // For TS <2.3, the generator separates out [Symbol.asyncIterator] into *.asynciterable.d.ts, so + // these references must not leak into the main file, so we can treat them as `any` as a fallback. + if (compilerBehavior.treatAsyncSequence) { + // Forwards-compatible definition: + // NOTE: In IDL→TS (whatwg/streams#1372 etc) async_sequence -> AsyncIterable + // If stricter interop wanted, could use AsyncIterable | Iterable + let subtype = arrayify(obj.subtype).map(t => convertDomTypeToTsTypeBase(t, forReturn)).join(", "); + if (!subtype) subtype = "any"; + return `AsyncIterable`; + } else { + // Legacy main & fallback builds: no async iterable interface available. + + return "any"; + } + } if (obj.type === "sequence" && !forReturn && iterator !== "") { return "Iterable"; } @@ -442,6 +462,7 @@ export function emitWebIdl( } const type = convertBaseType(); + if(type === "any") return type; let subtypeString = arrayify(obj.subtype) .map((t) => convertDomTypeToTsTypeBase(t, forReturn)) .join(", "); From 28414b81277396a21bf98a1adb683c6653bb5c6d Mon Sep 17 00:00:00 2001 From: Bashamega Date: Fri, 28 Aug 2026 11:18:36 +0300 Subject: [PATCH 2/9] Refactor async sequence handling in emitWebIdl function for clarity and maintainability --- src/build/emitter.ts | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/src/build/emitter.ts b/src/build/emitter.ts index 39a7a9bb9..9aacc69be 100644 --- a/src/build/emitter.ts +++ b/src/build/emitter.ts @@ -412,18 +412,24 @@ export function emitWebIdl( // If we're in a build that includes async iterables (TS 2.3+ or forced), emit as AsyncIterable. // For TS <2.3, the generator separates out [Symbol.asyncIterator] into *.asynciterable.d.ts, so // these references must not leak into the main file, so we can treat them as `any` as a fallback. - if (compilerBehavior.treatAsyncSequence) { - // Forwards-compatible definition: - // NOTE: In IDL→TS (whatwg/streams#1372 etc) async_sequence -> AsyncIterable - // If stricter interop wanted, could use AsyncIterable | Iterable - let subtype = arrayify(obj.subtype).map(t => convertDomTypeToTsTypeBase(t, forReturn)).join(", "); - if (!subtype) subtype = "any"; - return `AsyncIterable`; - } else { - // Legacy main & fallback builds: no async iterable interface available. - - return "any"; + if (compilerBehavior.treatAsyncSequence) { + // Forwards-compatible definition: + // NOTE: In IDL→TS (whatwg/streams#1372 etc) async_sequence -> AsyncIterable + // If stricter interop wanted, could use AsyncIterable | Iterable + const subtype = arrayify(obj.subtype) + .map((t) => convertDomTypeToTsTypeBase(t, forReturn)) + .join(", "); + // The assignment to `subtype` is only needed to validate/trigger side-effects, + // but its value is not used because we always return "AsyncIterable" + // unless subtype is empty, in which case we substitute "any" + if (!subtype) { + return "AsyncIterable"; } + return "AsyncIterable"; + } else { + // Legacy main & fallback builds: no async iterable interface available. + return "any"; + } } if (obj.type === "sequence" && !forReturn && iterator !== "") { return "Iterable"; @@ -462,7 +468,9 @@ export function emitWebIdl( } const type = convertBaseType(); - if(type === "any") return type; + if (type === "any") { + return type; + } let subtypeString = arrayify(obj.subtype) .map((t) => convertDomTypeToTsTypeBase(t, forReturn)) .join(", "); From c2020abd673ad37c24bdfad4ebb26243fa5262af Mon Sep 17 00:00:00 2001 From: Bashamega Date: Fri, 28 Aug 2026 11:19:25 +0300 Subject: [PATCH 3/9] Update @mdn/browser-compat-data dependency to version 8.0.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7a8f8e774..de5938782 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "type": "module", "devDependencies": { "@eslint/js": "^10", - "@mdn/browser-compat-data": "^8.0.13", + "@mdn/browser-compat-data": "^8.0.1", "@octokit/rest": "^22.0.0", "@types/node": "^25.0.3", "@types/prettier": "^3.0.0", From 7cc9bb87e1f85e2a5ceafc163cb865b7d1b7fd2e Mon Sep 17 00:00:00 2001 From: Bashamega Date: Fri, 28 Aug 2026 11:30:39 +0300 Subject: [PATCH 4/9] - Signed-off-by: Bashamega --- baselines/audioworklet.generated.d.ts | 6 - baselines/dom.generated.d.ts | 180 +----------------- baselines/serviceworker.generated.d.ts | 130 +------------ baselines/sharedworker.generated.d.ts | 79 +------- baselines/ts5.5/audioworklet.generated.d.ts | 6 - baselines/ts5.5/dom.generated.d.ts | 180 +----------------- baselines/ts5.5/serviceworker.generated.d.ts | 121 +----------- .../serviceworker.iterable.generated.d.ts | 9 - baselines/ts5.5/sharedworker.generated.d.ts | 79 +------- baselines/ts5.5/webworker.generated.d.ts | 121 +----------- .../ts5.5/webworker.iterable.generated.d.ts | 9 - baselines/ts5.6/audioworklet.generated.d.ts | 6 - baselines/ts5.6/dom.generated.d.ts | 180 +----------------- baselines/ts5.6/serviceworker.generated.d.ts | 121 +----------- .../serviceworker.iterable.generated.d.ts | 9 - baselines/ts5.6/sharedworker.generated.d.ts | 79 +------- baselines/ts5.6/webworker.generated.d.ts | 121 +----------- .../ts5.6/webworker.iterable.generated.d.ts | 9 - baselines/ts5.9/audioworklet.generated.d.ts | 6 - baselines/ts5.9/dom.generated.d.ts | 180 +----------------- baselines/ts5.9/serviceworker.generated.d.ts | 121 +----------- .../serviceworker.iterable.generated.d.ts | 9 - baselines/ts5.9/sharedworker.generated.d.ts | 79 +------- baselines/ts5.9/webworker.generated.d.ts | 121 +----------- .../ts5.9/webworker.iterable.generated.d.ts | 9 - baselines/webworker.generated.d.ts | 130 +------------ package-lock.json | 8 +- 27 files changed, 40 insertions(+), 2068 deletions(-) diff --git a/baselines/audioworklet.generated.d.ts b/baselines/audioworklet.generated.d.ts index 538391885..dc7ea4402 100644 --- a/baselines/audioworklet.generated.d.ts +++ b/baselines/audioworklet.generated.d.ts @@ -962,12 +962,6 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; - /** - * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) - */ - from(asyncIterable: any): ReadableStream; }; /** diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index ebb28c09e..dfcfcd2cf 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -336,11 +336,6 @@ interface BlobPropertyBag { type?: string; } -interface CSSContainerCondition { - name: string; - query: string; -} - interface CSSMatrixComponentOptions { is2D?: boolean; } @@ -1269,12 +1264,6 @@ interface IDBDatabaseInfo { version?: number; } -interface IDBGetAllOptions { - count?: number; - direction?: IDBCursorDirection; - query?: any; -} - interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -3260,7 +3249,6 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { - sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -4066,8 +4054,6 @@ declare var AnimationEffect: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent) */ interface AnimationEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animation) */ - readonly animation: CSSAnimation | null; /** * The **`AnimationEvent.animationName`** read-only property is a string containing the value of the animation-name CSS property associated with the transition. * @@ -5611,8 +5597,6 @@ declare var CSSConditionRule: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule) */ interface CSSContainerRule extends CSSConditionRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/conditions) */ - readonly conditions: ReadonlyArray; /** * The read-only **`containerName`** property of the CSSContainerRule interface represents the container name of the associated CSS @container at-rule. * @@ -5723,14 +5707,12 @@ interface CSSFontFaceDescriptors extends CSSStyleDeclarationBase { "font-stretch": string; "font-style": string; "font-weight": string; - "font-width": string; fontDisplay: string; fontFamily: string; fontFeatureSettings: string; fontStretch: string; fontStyle: string; fontWeight: string; - fontWidth: string; "size-adjust": string; sizeAdjust: string; src: string; @@ -8168,12 +8150,6 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/font-weight) */ fontWeight: string; - /** - * The font-width CSS property selects a normal, condensed, or expanded face from a font. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/font-width) - */ - fontWidth: string; /** * The forced-color-adjust CSS property allows authors to opt certain elements out of forced colors mode. This then restores the control of those values to CSS. * @@ -9065,12 +9041,6 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/ruby-align) */ rubyAlign: string; - /** - * The ruby-overhang CSS property specifies whether or not a annotation overhangs any surrounding text. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/ruby-overhang) - */ - rubyOverhang: string; /** * The ruby-position CSS property defines the position of a ruby element relative to its base element. It can be positioned over the element (over), under it (under), or between the characters on their right side (inter-character). * @@ -12912,12 +12882,6 @@ interface DeviceMotionEvent extends Event { declare var DeviceMotionEvent: { prototype: DeviceMotionEvent; new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; - /** - * The **`requestPermission()`** static method of the DeviceMotionEvent interface requests the user's permission to access device motion data from the accelerometer and gyroscope sensors. This method requires transient activation, meaning that it must be triggered by a UI event such as a button click. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/requestPermission_static) - */ - requestPermission(): Promise; }; /** @@ -13010,12 +12974,6 @@ interface DeviceOrientationEvent extends Event { declare var DeviceOrientationEvent: { prototype: DeviceOrientationEvent; new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; - /** - * The **`requestPermission()`** static method of the DeviceOrientationEvent interface requests the user's permission to access device orientation data from the accelerometer and gyroscope sensors. It can also request permission to access magnetometer data when absolute orientation is needed. This method requires transient activation, meaning that it must be triggered by a UI event such as a button click. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/requestPermission_static) - */ - requestPermission(absolute?: boolean): Promise; }; /** Available only in secure contexts. */ @@ -13701,12 +13659,6 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve declare var Document: { prototype: Document; new(): Document; - /** - * The **`parseHTML()`** static method of the Document object provides an XSS-safe method to parse and sanitize a string of HTML in order to create a new Document instance. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTML_static) - */ - parseHTML(html: string, options?: SetHTMLOptions): Document; /** * The **`parseHTMLUnsafe()`** static method of the Document object is used to parse HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance. * @@ -17818,7 +17770,6 @@ declare var HTMLBaseElement: { }; interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap { - "orientationchange": Event; } /** @@ -17836,8 +17787,6 @@ interface HTMLBodyElement extends HTMLElement, WindowEventHandlers { /** @deprecated */ link: string; /** @deprecated */ - onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null; - /** @deprecated */ text: string; /** @deprecated */ vLink: string; @@ -21156,23 +21105,6 @@ declare var HTMLSelectElement: { new(): HTMLSelectElement; }; -/** - * The **`HTMLSelectedContentElement`** interface represents a element in the DOM. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectedContentElement) - */ -interface HTMLSelectedContentElement extends HTMLElement { - addEventListener(type: K, listener: (this: HTMLSelectedContentElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLSelectedContentElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var HTMLSelectedContentElement: { - prototype: HTMLSelectedContentElement; - new(): HTMLSelectedContentElement; -}; - /** * The **`HTMLSlotElement`** interface of the Shadow DOM API enables access to the name and assigned nodes of an HTML element. * @@ -21878,8 +21810,6 @@ interface HTMLTemplateElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSerializable) */ shadowRootSerializable: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSlotAssignment) */ - shadowRootSlotAssignment: string; addEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -22851,12 +22781,6 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -23039,12 +22963,6 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -23108,18 +23026,6 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ -interface IDBRecord { - readonly key: any; - readonly primaryKey: any; - readonly value: any; -} - -declare var IDBRecord: { - prototype: IDBRecord; - new(): IDBRecord; -}; - interface IDBRequestEventMap { "error": Event; "success": Event; @@ -28708,8 +28614,6 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; - readonly workerCacheLookupStart: DOMHighResTimeStamp; - readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -29805,7 +29709,6 @@ interface RTCDtlsTransport extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) */ readonly state: RTCDtlsTransportState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/getRemoteCertificates) */ getRemoteCertificates(): ArrayBuffer[]; addEventListener(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -30051,12 +29954,12 @@ declare var RTCIceCandidate: { new(candidateInitDict?: RTCLocalIceCandidateInit): RTCIceCandidate; }; -/** - * The **`RTCIceCandidatePair`** dictionary describes a pair of ICE candidates which together comprise a description of a viable connection between two WebRTC endpoints. It is used as the return value from RTCIceTransport.getSelectedCandidatePair() to identify the currently-selected candidate pair identified by the ICE agent. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidatePair) - */ +/** The **`RTCIceCandidatePair`** dictionary describes a pair of ICE candidates which together comprise a description of a viable connection between two WebRTC endpoints. It is used as the return value from RTCIceTransport.getSelectedCandidatePair() to identify the currently-selected candidate pair identified by the ICE agent. */ interface RTCIceCandidatePair { + /** The **`local`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate which describes the configuration of the local end of a viable WebRTC connection. */ + local: RTCIceCandidate; + /** The **`remote`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate describing the configuration of the remote end of a viable WebRTC connection. */ + remote: RTCIceCandidate; } interface RTCIceTransportEventMap { @@ -31012,12 +30915,6 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; - /** - * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) - */ - from(asyncIterable: any): ReadableStream; }; /** @@ -36164,12 +36061,6 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/getHTML) */ getHTML(options?: GetHTMLOptions): string; - /** - * The **`setHTML()`** method of the ShadowRoot interface provides an XSS-safe method to parse and sanitize a string of HTML, which then replaces the existing tree in the Shadow DOM. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTML) - */ - setHTML(html: string, options?: SetHTMLOptions): void; /** * The **`setHTMLUnsafe()`** method of the ShadowRoot interface can be used to parse HTML input into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM. * @@ -38013,8 +37904,6 @@ declare var TransformStreamDefaultController: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent) */ interface TransitionEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/animation) */ - readonly animation: CSSTransition | null; /** * The **`TransitionEvent.elapsedTime`** read-only property is a float giving the amount of time the animation has been running, in seconds, when this event fired. This value is not affected by the transition-delay property. * @@ -38534,21 +38423,13 @@ declare var VTTCue: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion) */ interface VTTRegion { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/id) */ id: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/lines) */ lines: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorX) */ regionAnchorX: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorY) */ regionAnchorY: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/scroll) */ scroll: ScrollSetting; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorX) */ viewportAnchorX: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorY) */ viewportAnchorY: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/width) */ width: number; } @@ -41829,7 +41710,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; - readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -41867,8 +41747,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ - createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -41963,8 +41841,6 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ - createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -41972,23 +41848,6 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) - */ -interface WebTransportDatagramsWritable extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ - sendGroup: WebTransportSendGroup | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ - sendOrder: number; -} - -declare var WebTransportDatagramsWritable: { - prototype: WebTransportDatagramsWritable; - new(): WebTransportDatagramsWritable; -}; - /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -42035,21 +41894,6 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) - */ -interface WebTransportSendGroup { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ - getStats(): Promise; -} - -declare var WebTransportSendGroup: { - prototype: WebTransportSendGroup; - new(): WebTransportSendGroup; -}; - /** * 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. @@ -42057,7 +41901,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -43260,70 +43103,60 @@ declare var XPathResult: { /** * An **`XSLTProcessor`** applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output. It has methods to load the XSLT stylesheet, to manipulate parameter values, and to apply the transformation to documents. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor) */ interface XSLTProcessor { /** * The **`clearParameters()`** method of the XSLTProcessor interface removes all parameters () and their values from the stylesheet imported in the processor. The XSLTProcessor will then use the default values specified in the XSLT stylesheet. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/clearParameters) */ clearParameters(): void; /** * The **`getParameter()`** method of the XSLTProcessor interface returns the value of a parameter () from the stylesheet imported in the processor. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/getParameter) */ getParameter(namespaceURI: string | null, localName: string): any; /** * The **`importStylesheet()`** method of the XSLTProcessor interface imports an XSLT stylesheet for the processor. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/importStylesheet) */ importStylesheet(style: Node): void; /** * The **`removeParameter()`** method of the XSLTProcessor interface removes the parameter () and its value from the stylesheet imported in the processor. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/removeParameter) */ removeParameter(namespaceURI: string | null, localName: string): void; /** * The **`reset()`** method of the XSLTProcessor interface removes all parameters () and the XSLT stylesheet from the processor. The XSLTProcessor will then be in its original state when it was created. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/reset) */ reset(): void; /** * The **`setParameter()`** method of the XSLTProcessor interface sets the value of a parameter () in the stylesheet imported in the processor. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/setParameter) */ setParameter(namespaceURI: string | null, localName: string, value: any): void; /** * The **`transformToDocument()`** method of the XSLTProcessor interface transforms the provided Node source to a Document using the XSLT stylesheet associated with XSLTProcessor. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToDocument) */ transformToDocument(source: Node): Document; /** * The **`transformToFragment()`** method of the XSLTProcessor interface transforms a provided Node source to a DocumentFragment using the XSLT stylesheet associated with the XSLTProcessor. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToFragment) */ transformToFragment(source: Node, output: Document): DocumentFragment; } -/** @deprecated */ declare var XSLTProcessor: { prototype: XSLTProcessor; new(): XSLTProcessor; @@ -44221,7 +44054,6 @@ interface HTMLElementTagNameMap { "search": HTMLElement; "section": HTMLElement; "select": HTMLSelectElement; - "selectedcontent": HTMLSelectedContentElement; "slot": HTMLSlotElement; "small": HTMLElement; "source": HTMLSourceElement; @@ -45279,7 +45111,7 @@ type SanitizerPI = string | SanitizerProcessingInstruction; type SelectionDirection = "forward" | "backward" | "none"; type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index eb94d42ab..8cb951d64 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -660,12 +660,6 @@ interface IDBDatabaseInfo { version?: number; } -interface IDBGetAllOptions { - count?: number; - direction?: IDBCursorDirection; - query?: any; -} - interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -1003,25 +997,6 @@ interface ResponseInit { statusText?: string; } -interface RouterCondition { - not?: RouterCondition; - or?: RouterCondition[]; - requestDestination?: RequestDestination; - requestMethod?: string; - requestMode?: RequestMode; - runningStatus?: RunningStatus; - urlPattern?: URLPatternCompatible; -} - -interface RouterRule { - condition: RouterCondition; - source: RouterSource; -} - -interface RouterSourceDict { - cacheName?: string; -} - interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } @@ -1277,7 +1252,6 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { - sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -6191,12 +6165,6 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -6379,12 +6347,6 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -6448,18 +6410,6 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ -interface IDBRecord { - readonly key: any; - readonly primaryKey: any; - readonly value: any; -} - -declare var IDBRecord: { - prototype: IDBRecord; - new(): IDBRecord; -}; - interface IDBRequestEventMap { "error": Event; "success": Event; @@ -6711,25 +6661,6 @@ interface ImportMeta { resolve(specifier: string): string; } -/** - * The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent) - */ -interface InstallEvent extends ExtendableEvent { - /** - * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) - */ - addRoutes(rules: RouterRule | RouterRule[]): Promise; -} - -declare var InstallEvent: { - prototype: InstallEvent; - new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent; -}; - /** * The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime. * @@ -7826,8 +7757,6 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; - readonly workerCacheLookupStart: DOMHighResTimeStamp; - readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -8284,12 +8213,6 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; - /** - * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) - */ - from(asyncIterable: any): ReadableStream; }; /** @@ -12374,7 +12297,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; - readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -12412,8 +12334,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ - createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -12508,8 +12428,6 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ - createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -12517,23 +12435,6 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) - */ -interface WebTransportDatagramsWritable extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ - sendGroup: WebTransportSendGroup | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ - sendOrder: number; -} - -declare var WebTransportDatagramsWritable: { - prototype: WebTransportDatagramsWritable; - new(): WebTransportDatagramsWritable; -}; - /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -12580,21 +12481,6 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) - */ -interface WebTransportSendGroup { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ - getStats(): Promise; -} - -declare var WebTransportSendGroup: { - prototype: WebTransportSendGroup; - new(): WebTransportSendGroup; -}; - /** * 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. @@ -12602,7 +12488,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -13731,11 +13616,9 @@ type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableSt type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type ReportList = Report[]; type RequestInfo = Request | string; -type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | WebTransportDatagramsWritable | ArrayBuffer; -type URLPatternCompatible = string | URLPatternInit | URLPattern; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -13833,8 +13716,6 @@ type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; -type RouterSourceEnum = "cache" | "fetch-event" | "network" | "race-network-and-fetch-handler"; -type RunningStatus = "not-running" | "running"; type SecurityPolicyViolationEventDisposition = "enforce" | "report"; type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; @@ -14029,15 +13910,6 @@ interface IDBObjectStore { createIndex(name: string, keyPath: string | Iterable, options?: IDBIndexParameters): IDBIndex; } -interface InstallEvent { - /** - * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) - */ - addRoutes(rules: RouterRule | Iterable): Promise; -} - interface MessageEvent { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index 994b116e1..5b0dd9d68 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -604,12 +604,6 @@ interface IDBDatabaseInfo { version?: number; } -interface IDBGetAllOptions { - count?: number; - direction?: IDBCursorDirection; - query?: any; -} - interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -1188,7 +1182,6 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { - sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -5855,12 +5848,6 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -6043,12 +6030,6 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -6112,18 +6093,6 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ -interface IDBRecord { - readonly key: any; - readonly primaryKey: any; - readonly value: any; -} - -declare var IDBRecord: { - prototype: IDBRecord; - new(): IDBRecord; -}; - interface IDBRequestEventMap { "error": Event; "success": Event; @@ -7446,8 +7415,6 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; - readonly workerCacheLookupStart: DOMHighResTimeStamp; - readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -7829,12 +7796,6 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; - /** - * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) - */ - from(asyncIterable: any): ReadableStream; }; /** @@ -11879,7 +11840,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; - readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -11917,8 +11877,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ - createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -12013,8 +11971,6 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ - createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -12022,23 +11978,6 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) - */ -interface WebTransportDatagramsWritable extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ - sendGroup: WebTransportSendGroup | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ - sendOrder: number; -} - -declare var WebTransportDatagramsWritable: { - prototype: WebTransportDatagramsWritable; - new(): WebTransportDatagramsWritable; -}; - /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -12085,21 +12024,6 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) - */ -interface WebTransportSendGroup { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ - getStats(): Promise; -} - -declare var WebTransportSendGroup: { - prototype: WebTransportSendGroup; - new(): WebTransportSendGroup; -}; - /** * 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. @@ -12107,7 +12031,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -13383,7 +13306,7 @@ type ReportList = Report[]; type RequestInfo = Request | string; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | WebTransportDatagramsWritable | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; diff --git a/baselines/ts5.5/audioworklet.generated.d.ts b/baselines/ts5.5/audioworklet.generated.d.ts index ffcf58dc5..b60857baa 100644 --- a/baselines/ts5.5/audioworklet.generated.d.ts +++ b/baselines/ts5.5/audioworklet.generated.d.ts @@ -959,12 +959,6 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; - /** - * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) - */ - from(asyncIterable: any): ReadableStream; }; /** diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index dc1f145c9..786600574 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -333,11 +333,6 @@ interface BlobPropertyBag { type?: string; } -interface CSSContainerCondition { - name: string; - query: string; -} - interface CSSMatrixComponentOptions { is2D?: boolean; } @@ -1266,12 +1261,6 @@ interface IDBDatabaseInfo { version?: number; } -interface IDBGetAllOptions { - count?: number; - direction?: IDBCursorDirection; - query?: any; -} - interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -3257,7 +3246,6 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { - sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -4063,8 +4051,6 @@ declare var AnimationEffect: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent) */ interface AnimationEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animation) */ - readonly animation: CSSAnimation | null; /** * The **`AnimationEvent.animationName`** read-only property is a string containing the value of the animation-name CSS property associated with the transition. * @@ -5608,8 +5594,6 @@ declare var CSSConditionRule: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule) */ interface CSSContainerRule extends CSSConditionRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/conditions) */ - readonly conditions: ReadonlyArray; /** * The read-only **`containerName`** property of the CSSContainerRule interface represents the container name of the associated CSS @container at-rule. * @@ -5720,14 +5704,12 @@ interface CSSFontFaceDescriptors extends CSSStyleDeclarationBase { "font-stretch": string; "font-style": string; "font-weight": string; - "font-width": string; fontDisplay: string; fontFamily: string; fontFeatureSettings: string; fontStretch: string; fontStyle: string; fontWeight: string; - fontWidth: string; "size-adjust": string; sizeAdjust: string; src: string; @@ -8158,12 +8140,6 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/font-weight) */ fontWeight: string; - /** - * The font-width CSS property selects a normal, condensed, or expanded face from a font. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/font-width) - */ - fontWidth: string; /** * The forced-color-adjust CSS property allows authors to opt certain elements out of forced colors mode. This then restores the control of those values to CSS. * @@ -9055,12 +9031,6 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/ruby-align) */ rubyAlign: string; - /** - * The ruby-overhang CSS property specifies whether or not a annotation overhangs any surrounding text. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/ruby-overhang) - */ - rubyOverhang: string; /** * The ruby-position CSS property defines the position of a ruby element relative to its base element. It can be positioned over the element (over), under it (under), or between the characters on their right side (inter-character). * @@ -12901,12 +12871,6 @@ interface DeviceMotionEvent extends Event { declare var DeviceMotionEvent: { prototype: DeviceMotionEvent; new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; - /** - * The **`requestPermission()`** static method of the DeviceMotionEvent interface requests the user's permission to access device motion data from the accelerometer and gyroscope sensors. This method requires transient activation, meaning that it must be triggered by a UI event such as a button click. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/requestPermission_static) - */ - requestPermission(): Promise; }; /** @@ -12999,12 +12963,6 @@ interface DeviceOrientationEvent extends Event { declare var DeviceOrientationEvent: { prototype: DeviceOrientationEvent; new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; - /** - * The **`requestPermission()`** static method of the DeviceOrientationEvent interface requests the user's permission to access device orientation data from the accelerometer and gyroscope sensors. It can also request permission to access magnetometer data when absolute orientation is needed. This method requires transient activation, meaning that it must be triggered by a UI event such as a button click. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/requestPermission_static) - */ - requestPermission(absolute?: boolean): Promise; }; /** Available only in secure contexts. */ @@ -13690,12 +13648,6 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve declare var Document: { prototype: Document; new(): Document; - /** - * The **`parseHTML()`** static method of the Document object provides an XSS-safe method to parse and sanitize a string of HTML in order to create a new Document instance. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTML_static) - */ - parseHTML(html: string, options?: SetHTMLOptions): Document; /** * The **`parseHTMLUnsafe()`** static method of the Document object is used to parse HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance. * @@ -17802,7 +17754,6 @@ declare var HTMLBaseElement: { }; interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap { - "orientationchange": Event; } /** @@ -17820,8 +17771,6 @@ interface HTMLBodyElement extends HTMLElement, WindowEventHandlers { /** @deprecated */ link: string; /** @deprecated */ - onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null; - /** @deprecated */ text: string; /** @deprecated */ vLink: string; @@ -21133,23 +21082,6 @@ declare var HTMLSelectElement: { new(): HTMLSelectElement; }; -/** - * The **`HTMLSelectedContentElement`** interface represents a element in the DOM. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectedContentElement) - */ -interface HTMLSelectedContentElement extends HTMLElement { - addEventListener(type: K, listener: (this: HTMLSelectedContentElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLSelectedContentElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var HTMLSelectedContentElement: { - prototype: HTMLSelectedContentElement; - new(): HTMLSelectedContentElement; -}; - /** * The **`HTMLSlotElement`** interface of the Shadow DOM API enables access to the name and assigned nodes of an HTML element. * @@ -21854,8 +21786,6 @@ interface HTMLTemplateElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSerializable) */ shadowRootSerializable: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSlotAssignment) */ - shadowRootSlotAssignment: string; addEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -22827,12 +22757,6 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -23015,12 +22939,6 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -23084,18 +23002,6 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ -interface IDBRecord { - readonly key: any; - readonly primaryKey: any; - readonly value: any; -} - -declare var IDBRecord: { - prototype: IDBRecord; - new(): IDBRecord; -}; - interface IDBRequestEventMap { "error": Event; "success": Event; @@ -28684,8 +28590,6 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; - readonly workerCacheLookupStart: DOMHighResTimeStamp; - readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -29781,7 +29685,6 @@ interface RTCDtlsTransport extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) */ readonly state: RTCDtlsTransportState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/getRemoteCertificates) */ getRemoteCertificates(): ArrayBuffer[]; addEventListener(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -30027,12 +29930,12 @@ declare var RTCIceCandidate: { new(candidateInitDict?: RTCLocalIceCandidateInit): RTCIceCandidate; }; -/** - * The **`RTCIceCandidatePair`** dictionary describes a pair of ICE candidates which together comprise a description of a viable connection between two WebRTC endpoints. It is used as the return value from RTCIceTransport.getSelectedCandidatePair() to identify the currently-selected candidate pair identified by the ICE agent. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidatePair) - */ +/** The **`RTCIceCandidatePair`** dictionary describes a pair of ICE candidates which together comprise a description of a viable connection between two WebRTC endpoints. It is used as the return value from RTCIceTransport.getSelectedCandidatePair() to identify the currently-selected candidate pair identified by the ICE agent. */ interface RTCIceCandidatePair { + /** The **`local`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate which describes the configuration of the local end of a viable WebRTC connection. */ + local: RTCIceCandidate; + /** The **`remote`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate describing the configuration of the remote end of a viable WebRTC connection. */ + remote: RTCIceCandidate; } interface RTCIceTransportEventMap { @@ -30988,12 +30891,6 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; - /** - * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) - */ - from(asyncIterable: any): ReadableStream; }; /** @@ -36139,12 +36036,6 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/getHTML) */ getHTML(options?: GetHTMLOptions): string; - /** - * The **`setHTML()`** method of the ShadowRoot interface provides an XSS-safe method to parse and sanitize a string of HTML, which then replaces the existing tree in the Shadow DOM. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTML) - */ - setHTML(html: string, options?: SetHTMLOptions): void; /** * The **`setHTMLUnsafe()`** method of the ShadowRoot interface can be used to parse HTML input into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM. * @@ -37987,8 +37878,6 @@ declare var TransformStreamDefaultController: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent) */ interface TransitionEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/animation) */ - readonly animation: CSSTransition | null; /** * The **`TransitionEvent.elapsedTime`** read-only property is a float giving the amount of time the animation has been running, in seconds, when this event fired. This value is not affected by the transition-delay property. * @@ -38508,21 +38397,13 @@ declare var VTTCue: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion) */ interface VTTRegion { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/id) */ id: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/lines) */ lines: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorX) */ regionAnchorX: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorY) */ regionAnchorY: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/scroll) */ scroll: ScrollSetting; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorX) */ viewportAnchorX: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorY) */ viewportAnchorY: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/width) */ width: number; } @@ -41803,7 +41684,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; - readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -41841,8 +41721,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ - createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -41937,8 +41815,6 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ - createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -41946,23 +41822,6 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) - */ -interface WebTransportDatagramsWritable extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ - sendGroup: WebTransportSendGroup | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ - sendOrder: number; -} - -declare var WebTransportDatagramsWritable: { - prototype: WebTransportDatagramsWritable; - new(): WebTransportDatagramsWritable; -}; - /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -42009,21 +41868,6 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) - */ -interface WebTransportSendGroup { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ - getStats(): Promise; -} - -declare var WebTransportSendGroup: { - prototype: WebTransportSendGroup; - new(): WebTransportSendGroup; -}; - /** * 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. @@ -42031,7 +41875,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -43234,70 +43077,60 @@ declare var XPathResult: { /** * An **`XSLTProcessor`** applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output. It has methods to load the XSLT stylesheet, to manipulate parameter values, and to apply the transformation to documents. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor) */ interface XSLTProcessor { /** * The **`clearParameters()`** method of the XSLTProcessor interface removes all parameters () and their values from the stylesheet imported in the processor. The XSLTProcessor will then use the default values specified in the XSLT stylesheet. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/clearParameters) */ clearParameters(): void; /** * The **`getParameter()`** method of the XSLTProcessor interface returns the value of a parameter () from the stylesheet imported in the processor. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/getParameter) */ getParameter(namespaceURI: string | null, localName: string): any; /** * The **`importStylesheet()`** method of the XSLTProcessor interface imports an XSLT stylesheet for the processor. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/importStylesheet) */ importStylesheet(style: Node): void; /** * The **`removeParameter()`** method of the XSLTProcessor interface removes the parameter () and its value from the stylesheet imported in the processor. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/removeParameter) */ removeParameter(namespaceURI: string | null, localName: string): void; /** * The **`reset()`** method of the XSLTProcessor interface removes all parameters () and the XSLT stylesheet from the processor. The XSLTProcessor will then be in its original state when it was created. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/reset) */ reset(): void; /** * The **`setParameter()`** method of the XSLTProcessor interface sets the value of a parameter () in the stylesheet imported in the processor. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/setParameter) */ setParameter(namespaceURI: string | null, localName: string, value: any): void; /** * The **`transformToDocument()`** method of the XSLTProcessor interface transforms the provided Node source to a Document using the XSLT stylesheet associated with XSLTProcessor. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToDocument) */ transformToDocument(source: Node): Document; /** * The **`transformToFragment()`** method of the XSLTProcessor interface transforms a provided Node source to a DocumentFragment using the XSLT stylesheet associated with the XSLTProcessor. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToFragment) */ transformToFragment(source: Node, output: Document): DocumentFragment; } -/** @deprecated */ declare var XSLTProcessor: { prototype: XSLTProcessor; new(): XSLTProcessor; @@ -44195,7 +44028,6 @@ interface HTMLElementTagNameMap { "search": HTMLElement; "section": HTMLElement; "select": HTMLSelectElement; - "selectedcontent": HTMLSelectedContentElement; "slot": HTMLSlotElement; "small": HTMLElement; "source": HTMLSourceElement; @@ -45253,7 +45085,7 @@ type SanitizerPI = string | SanitizerProcessingInstruction; type SelectionDirection = "forward" | "backward" | "none"; type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index 78ab3cea9..a0d7fea68 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -657,12 +657,6 @@ interface IDBDatabaseInfo { version?: number; } -interface IDBGetAllOptions { - count?: number; - direction?: IDBCursorDirection; - query?: any; -} - interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -1000,25 +994,6 @@ interface ResponseInit { statusText?: string; } -interface RouterCondition { - not?: RouterCondition; - or?: RouterCondition[]; - requestDestination?: RequestDestination; - requestMethod?: string; - requestMode?: RequestMode; - runningStatus?: RunningStatus; - urlPattern?: URLPatternCompatible; -} - -interface RouterRule { - condition: RouterCondition; - source: RouterSource; -} - -interface RouterSourceDict { - cacheName?: string; -} - interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } @@ -1274,7 +1249,6 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { - sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -6188,12 +6162,6 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -6376,12 +6344,6 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -6445,18 +6407,6 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ -interface IDBRecord { - readonly key: any; - readonly primaryKey: any; - readonly value: any; -} - -declare var IDBRecord: { - prototype: IDBRecord; - new(): IDBRecord; -}; - interface IDBRequestEventMap { "error": Event; "success": Event; @@ -6708,25 +6658,6 @@ interface ImportMeta { resolve(specifier: string): string; } -/** - * The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent) - */ -interface InstallEvent extends ExtendableEvent { - /** - * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) - */ - addRoutes(rules: RouterRule | RouterRule[]): Promise; -} - -declare var InstallEvent: { - prototype: InstallEvent; - new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent; -}; - /** * The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime. * @@ -7823,8 +7754,6 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; - readonly workerCacheLookupStart: DOMHighResTimeStamp; - readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -8281,12 +8210,6 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; - /** - * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) - */ - from(asyncIterable: any): ReadableStream; }; /** @@ -12371,7 +12294,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; - readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -12409,8 +12331,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ - createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -12505,8 +12425,6 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ - createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -12514,23 +12432,6 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) - */ -interface WebTransportDatagramsWritable extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ - sendGroup: WebTransportSendGroup | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ - sendOrder: number; -} - -declare var WebTransportDatagramsWritable: { - prototype: WebTransportDatagramsWritable; - new(): WebTransportDatagramsWritable; -}; - /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -12577,21 +12478,6 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) - */ -interface WebTransportSendGroup { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ - getStats(): Promise; -} - -declare var WebTransportSendGroup: { - prototype: WebTransportSendGroup; - new(): WebTransportSendGroup; -}; - /** * 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. @@ -12599,7 +12485,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -13728,11 +13613,9 @@ type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableSt type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type ReportList = Report[]; type RequestInfo = Request | string; -type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | WebTransportDatagramsWritable | ArrayBuffer; -type URLPatternCompatible = string | URLPatternInit | URLPattern; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -13830,8 +13713,6 @@ type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; -type RouterSourceEnum = "cache" | "fetch-event" | "network" | "race-network-and-fetch-handler"; -type RunningStatus = "not-running" | "running"; type SecurityPolicyViolationEventDisposition = "enforce" | "report"; type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; diff --git a/baselines/ts5.5/serviceworker.iterable.generated.d.ts b/baselines/ts5.5/serviceworker.iterable.generated.d.ts index 7bb89a1fb..926cc2790 100644 --- a/baselines/ts5.5/serviceworker.iterable.generated.d.ts +++ b/baselines/ts5.5/serviceworker.iterable.generated.d.ts @@ -171,15 +171,6 @@ interface IDBObjectStore { createIndex(name: string, keyPath: string | Iterable, options?: IDBIndexParameters): IDBIndex; } -interface InstallEvent { - /** - * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) - */ - addRoutes(rules: RouterRule | Iterable): Promise; -} - interface MessageEvent { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index fadacc621..f6424baa7 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -601,12 +601,6 @@ interface IDBDatabaseInfo { version?: number; } -interface IDBGetAllOptions { - count?: number; - direction?: IDBCursorDirection; - query?: any; -} - interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -1185,7 +1179,6 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { - sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -5852,12 +5845,6 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -6040,12 +6027,6 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -6109,18 +6090,6 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ -interface IDBRecord { - readonly key: any; - readonly primaryKey: any; - readonly value: any; -} - -declare var IDBRecord: { - prototype: IDBRecord; - new(): IDBRecord; -}; - interface IDBRequestEventMap { "error": Event; "success": Event; @@ -7443,8 +7412,6 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; - readonly workerCacheLookupStart: DOMHighResTimeStamp; - readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -7826,12 +7793,6 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; - /** - * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) - */ - from(asyncIterable: any): ReadableStream; }; /** @@ -11876,7 +11837,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; - readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -11914,8 +11874,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ - createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -12010,8 +11968,6 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ - createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -12019,23 +11975,6 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) - */ -interface WebTransportDatagramsWritable extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ - sendGroup: WebTransportSendGroup | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ - sendOrder: number; -} - -declare var WebTransportDatagramsWritable: { - prototype: WebTransportDatagramsWritable; - new(): WebTransportDatagramsWritable; -}; - /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -12082,21 +12021,6 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) - */ -interface WebTransportSendGroup { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ - getStats(): Promise; -} - -declare var WebTransportSendGroup: { - prototype: WebTransportSendGroup; - new(): WebTransportSendGroup; -}; - /** * 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. @@ -12104,7 +12028,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -13380,7 +13303,7 @@ type ReportList = Report[]; type RequestInfo = Request | string; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | WebTransportDatagramsWritable | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index ba345d3dd..7ec31a503 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -748,12 +748,6 @@ interface IDBDatabaseInfo { version?: number; } -interface IDBGetAllOptions { - count?: number; - direction?: IDBCursorDirection; - query?: any; -} - interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -1151,25 +1145,6 @@ interface ResponseInit { statusText?: string; } -interface RouterCondition { - not?: RouterCondition; - or?: RouterCondition[]; - requestDestination?: RequestDestination; - requestMethod?: string; - requestMode?: RequestMode; - runningStatus?: RunningStatus; - urlPattern?: URLPatternCompatible; -} - -interface RouterRule { - condition: RouterCondition; - source: RouterSource; -} - -interface RouterSourceDict { - cacheName?: string; -} - interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } @@ -1551,7 +1526,6 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { - sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -6919,12 +6893,6 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -7107,12 +7075,6 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -7176,18 +7138,6 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ -interface IDBRecord { - readonly key: any; - readonly primaryKey: any; - readonly value: any; -} - -declare var IDBRecord: { - prototype: IDBRecord; - new(): IDBRecord; -}; - interface IDBRequestEventMap { "error": Event; "success": Event; @@ -7578,25 +7528,6 @@ interface ImportMeta { resolve(specifier: string): string; } -/** - * The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent) - */ -interface InstallEvent extends ExtendableEvent { - /** - * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) - */ - addRoutes(rules: RouterRule | RouterRule[]): Promise; -} - -declare var InstallEvent: { - prototype: InstallEvent; - new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent; -}; - /** * The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime. * @@ -8725,8 +8656,6 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; - readonly workerCacheLookupStart: DOMHighResTimeStamp; - readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -9432,12 +9361,6 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; - /** - * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) - */ - from(asyncIterable: any): ReadableStream; }; /** @@ -13955,7 +13878,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; - readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -13993,8 +13915,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ - createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -14089,8 +14009,6 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ - createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -14098,23 +14016,6 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) - */ -interface WebTransportDatagramsWritable extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ - sendGroup: WebTransportSendGroup | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ - sendOrder: number; -} - -declare var WebTransportDatagramsWritable: { - prototype: WebTransportDatagramsWritable; - new(): WebTransportDatagramsWritable; -}; - /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -14161,21 +14062,6 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) - */ -interface WebTransportSendGroup { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ - getStats(): Promise; -} - -declare var WebTransportSendGroup: { - prototype: WebTransportSendGroup; - new(): WebTransportSendGroup; -}; - /** * 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. @@ -14183,7 +14069,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -15543,11 +15428,9 @@ type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableSt type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type ReportList = Report[]; type RequestInfo = Request | string; -type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; -type URLPatternCompatible = string | URLPatternInit | URLPattern; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -15659,8 +15542,6 @@ type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; -type RouterSourceEnum = "cache" | "fetch-event" | "network" | "race-network-and-fetch-handler"; -type RunningStatus = "not-running" | "running"; type SecurityPolicyViolationEventDisposition = "enforce" | "report"; type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; diff --git a/baselines/ts5.5/webworker.iterable.generated.d.ts b/baselines/ts5.5/webworker.iterable.generated.d.ts index bb471a7be..606e6c3cd 100644 --- a/baselines/ts5.5/webworker.iterable.generated.d.ts +++ b/baselines/ts5.5/webworker.iterable.generated.d.ts @@ -175,15 +175,6 @@ interface ImageTrackList { [Symbol.iterator](): IterableIterator; } -interface InstallEvent { - /** - * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) - */ - addRoutes(rules: RouterRule | Iterable): Promise; -} - interface MessageEvent { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; diff --git a/baselines/ts5.6/audioworklet.generated.d.ts b/baselines/ts5.6/audioworklet.generated.d.ts index ffcf58dc5..b60857baa 100644 --- a/baselines/ts5.6/audioworklet.generated.d.ts +++ b/baselines/ts5.6/audioworklet.generated.d.ts @@ -959,12 +959,6 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; - /** - * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) - */ - from(asyncIterable: any): ReadableStream; }; /** diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 47a553229..f638cdd60 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -333,11 +333,6 @@ interface BlobPropertyBag { type?: string; } -interface CSSContainerCondition { - name: string; - query: string; -} - interface CSSMatrixComponentOptions { is2D?: boolean; } @@ -1266,12 +1261,6 @@ interface IDBDatabaseInfo { version?: number; } -interface IDBGetAllOptions { - count?: number; - direction?: IDBCursorDirection; - query?: any; -} - interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -3257,7 +3246,6 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { - sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -4063,8 +4051,6 @@ declare var AnimationEffect: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent) */ interface AnimationEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animation) */ - readonly animation: CSSAnimation | null; /** * The **`AnimationEvent.animationName`** read-only property is a string containing the value of the animation-name CSS property associated with the transition. * @@ -5608,8 +5594,6 @@ declare var CSSConditionRule: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule) */ interface CSSContainerRule extends CSSConditionRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/conditions) */ - readonly conditions: ReadonlyArray; /** * The read-only **`containerName`** property of the CSSContainerRule interface represents the container name of the associated CSS @container at-rule. * @@ -5720,14 +5704,12 @@ interface CSSFontFaceDescriptors extends CSSStyleDeclarationBase { "font-stretch": string; "font-style": string; "font-weight": string; - "font-width": string; fontDisplay: string; fontFamily: string; fontFeatureSettings: string; fontStretch: string; fontStyle: string; fontWeight: string; - fontWidth: string; "size-adjust": string; sizeAdjust: string; src: string; @@ -8165,12 +8147,6 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/font-weight) */ fontWeight: string; - /** - * The font-width CSS property selects a normal, condensed, or expanded face from a font. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/font-width) - */ - fontWidth: string; /** * The forced-color-adjust CSS property allows authors to opt certain elements out of forced colors mode. This then restores the control of those values to CSS. * @@ -9062,12 +9038,6 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/ruby-align) */ rubyAlign: string; - /** - * The ruby-overhang CSS property specifies whether or not a annotation overhangs any surrounding text. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/ruby-overhang) - */ - rubyOverhang: string; /** * The ruby-position CSS property defines the position of a ruby element relative to its base element. It can be positioned over the element (over), under it (under), or between the characters on their right side (inter-character). * @@ -12909,12 +12879,6 @@ interface DeviceMotionEvent extends Event { declare var DeviceMotionEvent: { prototype: DeviceMotionEvent; new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; - /** - * The **`requestPermission()`** static method of the DeviceMotionEvent interface requests the user's permission to access device motion data from the accelerometer and gyroscope sensors. This method requires transient activation, meaning that it must be triggered by a UI event such as a button click. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/requestPermission_static) - */ - requestPermission(): Promise; }; /** @@ -13007,12 +12971,6 @@ interface DeviceOrientationEvent extends Event { declare var DeviceOrientationEvent: { prototype: DeviceOrientationEvent; new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; - /** - * The **`requestPermission()`** static method of the DeviceOrientationEvent interface requests the user's permission to access device orientation data from the accelerometer and gyroscope sensors. It can also request permission to access magnetometer data when absolute orientation is needed. This method requires transient activation, meaning that it must be triggered by a UI event such as a button click. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/requestPermission_static) - */ - requestPermission(absolute?: boolean): Promise; }; /** Available only in secure contexts. */ @@ -13698,12 +13656,6 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve declare var Document: { prototype: Document; new(): Document; - /** - * The **`parseHTML()`** static method of the Document object provides an XSS-safe method to parse and sanitize a string of HTML in order to create a new Document instance. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTML_static) - */ - parseHTML(html: string, options?: SetHTMLOptions): Document; /** * The **`parseHTMLUnsafe()`** static method of the Document object is used to parse HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance. * @@ -17815,7 +17767,6 @@ declare var HTMLBaseElement: { }; interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap { - "orientationchange": Event; } /** @@ -17833,8 +17784,6 @@ interface HTMLBodyElement extends HTMLElement, WindowEventHandlers { /** @deprecated */ link: string; /** @deprecated */ - onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null; - /** @deprecated */ text: string; /** @deprecated */ vLink: string; @@ -21153,23 +21102,6 @@ declare var HTMLSelectElement: { new(): HTMLSelectElement; }; -/** - * The **`HTMLSelectedContentElement`** interface represents a element in the DOM. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectedContentElement) - */ -interface HTMLSelectedContentElement extends HTMLElement { - addEventListener(type: K, listener: (this: HTMLSelectedContentElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLSelectedContentElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var HTMLSelectedContentElement: { - prototype: HTMLSelectedContentElement; - new(): HTMLSelectedContentElement; -}; - /** * The **`HTMLSlotElement`** interface of the Shadow DOM API enables access to the name and assigned nodes of an HTML element. * @@ -21875,8 +21807,6 @@ interface HTMLTemplateElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSerializable) */ shadowRootSerializable: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSlotAssignment) */ - shadowRootSlotAssignment: string; addEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -22848,12 +22778,6 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -23036,12 +22960,6 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -23105,18 +23023,6 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ -interface IDBRecord { - readonly key: any; - readonly primaryKey: any; - readonly value: any; -} - -declare var IDBRecord: { - prototype: IDBRecord; - new(): IDBRecord; -}; - interface IDBRequestEventMap { "error": Event; "success": Event; @@ -28705,8 +28611,6 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; - readonly workerCacheLookupStart: DOMHighResTimeStamp; - readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -29802,7 +29706,6 @@ interface RTCDtlsTransport extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) */ readonly state: RTCDtlsTransportState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/getRemoteCertificates) */ getRemoteCertificates(): ArrayBuffer[]; addEventListener(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -30048,12 +29951,12 @@ declare var RTCIceCandidate: { new(candidateInitDict?: RTCLocalIceCandidateInit): RTCIceCandidate; }; -/** - * The **`RTCIceCandidatePair`** dictionary describes a pair of ICE candidates which together comprise a description of a viable connection between two WebRTC endpoints. It is used as the return value from RTCIceTransport.getSelectedCandidatePair() to identify the currently-selected candidate pair identified by the ICE agent. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidatePair) - */ +/** The **`RTCIceCandidatePair`** dictionary describes a pair of ICE candidates which together comprise a description of a viable connection between two WebRTC endpoints. It is used as the return value from RTCIceTransport.getSelectedCandidatePair() to identify the currently-selected candidate pair identified by the ICE agent. */ interface RTCIceCandidatePair { + /** The **`local`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate which describes the configuration of the local end of a viable WebRTC connection. */ + local: RTCIceCandidate; + /** The **`remote`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate describing the configuration of the remote end of a viable WebRTC connection. */ + remote: RTCIceCandidate; } interface RTCIceTransportEventMap { @@ -31009,12 +30912,6 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; - /** - * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) - */ - from(asyncIterable: any): ReadableStream; }; /** @@ -36161,12 +36058,6 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/getHTML) */ getHTML(options?: GetHTMLOptions): string; - /** - * The **`setHTML()`** method of the ShadowRoot interface provides an XSS-safe method to parse and sanitize a string of HTML, which then replaces the existing tree in the Shadow DOM. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTML) - */ - setHTML(html: string, options?: SetHTMLOptions): void; /** * The **`setHTMLUnsafe()`** method of the ShadowRoot interface can be used to parse HTML input into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM. * @@ -38010,8 +37901,6 @@ declare var TransformStreamDefaultController: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent) */ interface TransitionEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/animation) */ - readonly animation: CSSTransition | null; /** * The **`TransitionEvent.elapsedTime`** read-only property is a float giving the amount of time the animation has been running, in seconds, when this event fired. This value is not affected by the transition-delay property. * @@ -38531,21 +38420,13 @@ declare var VTTCue: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion) */ interface VTTRegion { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/id) */ id: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/lines) */ lines: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorX) */ regionAnchorX: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorY) */ regionAnchorY: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/scroll) */ scroll: ScrollSetting; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorX) */ viewportAnchorX: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorY) */ viewportAnchorY: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/width) */ width: number; } @@ -41826,7 +41707,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; - readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -41864,8 +41744,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ - createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -41960,8 +41838,6 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ - createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -41969,23 +41845,6 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) - */ -interface WebTransportDatagramsWritable extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ - sendGroup: WebTransportSendGroup | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ - sendOrder: number; -} - -declare var WebTransportDatagramsWritable: { - prototype: WebTransportDatagramsWritable; - new(): WebTransportDatagramsWritable; -}; - /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -42032,21 +41891,6 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) - */ -interface WebTransportSendGroup { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ - getStats(): Promise; -} - -declare var WebTransportSendGroup: { - prototype: WebTransportSendGroup; - new(): WebTransportSendGroup; -}; - /** * 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. @@ -42054,7 +41898,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -43257,70 +43100,60 @@ declare var XPathResult: { /** * An **`XSLTProcessor`** applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output. It has methods to load the XSLT stylesheet, to manipulate parameter values, and to apply the transformation to documents. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor) */ interface XSLTProcessor { /** * The **`clearParameters()`** method of the XSLTProcessor interface removes all parameters () and their values from the stylesheet imported in the processor. The XSLTProcessor will then use the default values specified in the XSLT stylesheet. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/clearParameters) */ clearParameters(): void; /** * The **`getParameter()`** method of the XSLTProcessor interface returns the value of a parameter () from the stylesheet imported in the processor. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/getParameter) */ getParameter(namespaceURI: string | null, localName: string): any; /** * The **`importStylesheet()`** method of the XSLTProcessor interface imports an XSLT stylesheet for the processor. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/importStylesheet) */ importStylesheet(style: Node): void; /** * The **`removeParameter()`** method of the XSLTProcessor interface removes the parameter () and its value from the stylesheet imported in the processor. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/removeParameter) */ removeParameter(namespaceURI: string | null, localName: string): void; /** * The **`reset()`** method of the XSLTProcessor interface removes all parameters () and the XSLT stylesheet from the processor. The XSLTProcessor will then be in its original state when it was created. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/reset) */ reset(): void; /** * The **`setParameter()`** method of the XSLTProcessor interface sets the value of a parameter () in the stylesheet imported in the processor. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/setParameter) */ setParameter(namespaceURI: string | null, localName: string, value: any): void; /** * The **`transformToDocument()`** method of the XSLTProcessor interface transforms the provided Node source to a Document using the XSLT stylesheet associated with XSLTProcessor. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToDocument) */ transformToDocument(source: Node): Document; /** * The **`transformToFragment()`** method of the XSLTProcessor interface transforms a provided Node source to a DocumentFragment using the XSLT stylesheet associated with the XSLTProcessor. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToFragment) */ transformToFragment(source: Node, output: Document): DocumentFragment; } -/** @deprecated */ declare var XSLTProcessor: { prototype: XSLTProcessor; new(): XSLTProcessor; @@ -44218,7 +44051,6 @@ interface HTMLElementTagNameMap { "search": HTMLElement; "section": HTMLElement; "select": HTMLSelectElement; - "selectedcontent": HTMLSelectedContentElement; "slot": HTMLSlotElement; "small": HTMLElement; "source": HTMLSourceElement; @@ -45276,7 +45108,7 @@ type SanitizerPI = string | SanitizerProcessingInstruction; type SelectionDirection = "forward" | "backward" | "none"; type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; diff --git a/baselines/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index 78ab3cea9..a0d7fea68 100644 --- a/baselines/ts5.6/serviceworker.generated.d.ts +++ b/baselines/ts5.6/serviceworker.generated.d.ts @@ -657,12 +657,6 @@ interface IDBDatabaseInfo { version?: number; } -interface IDBGetAllOptions { - count?: number; - direction?: IDBCursorDirection; - query?: any; -} - interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -1000,25 +994,6 @@ interface ResponseInit { statusText?: string; } -interface RouterCondition { - not?: RouterCondition; - or?: RouterCondition[]; - requestDestination?: RequestDestination; - requestMethod?: string; - requestMode?: RequestMode; - runningStatus?: RunningStatus; - urlPattern?: URLPatternCompatible; -} - -interface RouterRule { - condition: RouterCondition; - source: RouterSource; -} - -interface RouterSourceDict { - cacheName?: string; -} - interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } @@ -1274,7 +1249,6 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { - sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -6188,12 +6162,6 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -6376,12 +6344,6 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -6445,18 +6407,6 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ -interface IDBRecord { - readonly key: any; - readonly primaryKey: any; - readonly value: any; -} - -declare var IDBRecord: { - prototype: IDBRecord; - new(): IDBRecord; -}; - interface IDBRequestEventMap { "error": Event; "success": Event; @@ -6708,25 +6658,6 @@ interface ImportMeta { resolve(specifier: string): string; } -/** - * The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent) - */ -interface InstallEvent extends ExtendableEvent { - /** - * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) - */ - addRoutes(rules: RouterRule | RouterRule[]): Promise; -} - -declare var InstallEvent: { - prototype: InstallEvent; - new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent; -}; - /** * The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime. * @@ -7823,8 +7754,6 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; - readonly workerCacheLookupStart: DOMHighResTimeStamp; - readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -8281,12 +8210,6 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; - /** - * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) - */ - from(asyncIterable: any): ReadableStream; }; /** @@ -12371,7 +12294,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; - readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -12409,8 +12331,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ - createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -12505,8 +12425,6 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ - createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -12514,23 +12432,6 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) - */ -interface WebTransportDatagramsWritable extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ - sendGroup: WebTransportSendGroup | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ - sendOrder: number; -} - -declare var WebTransportDatagramsWritable: { - prototype: WebTransportDatagramsWritable; - new(): WebTransportDatagramsWritable; -}; - /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -12577,21 +12478,6 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) - */ -interface WebTransportSendGroup { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ - getStats(): Promise; -} - -declare var WebTransportSendGroup: { - prototype: WebTransportSendGroup; - new(): WebTransportSendGroup; -}; - /** * 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. @@ -12599,7 +12485,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -13728,11 +13613,9 @@ type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableSt type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type ReportList = Report[]; type RequestInfo = Request | string; -type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | WebTransportDatagramsWritable | ArrayBuffer; -type URLPatternCompatible = string | URLPatternInit | URLPattern; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -13830,8 +13713,6 @@ type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; -type RouterSourceEnum = "cache" | "fetch-event" | "network" | "race-network-and-fetch-handler"; -type RunningStatus = "not-running" | "running"; type SecurityPolicyViolationEventDisposition = "enforce" | "report"; type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; diff --git a/baselines/ts5.6/serviceworker.iterable.generated.d.ts b/baselines/ts5.6/serviceworker.iterable.generated.d.ts index 7fb311ec9..f7b7aaf20 100644 --- a/baselines/ts5.6/serviceworker.iterable.generated.d.ts +++ b/baselines/ts5.6/serviceworker.iterable.generated.d.ts @@ -179,15 +179,6 @@ interface IDBObjectStore { createIndex(name: string, keyPath: string | Iterable, options?: IDBIndexParameters): IDBIndex; } -interface InstallEvent { - /** - * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) - */ - addRoutes(rules: RouterRule | Iterable): Promise; -} - interface MessageEvent { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; diff --git a/baselines/ts5.6/sharedworker.generated.d.ts b/baselines/ts5.6/sharedworker.generated.d.ts index fadacc621..f6424baa7 100644 --- a/baselines/ts5.6/sharedworker.generated.d.ts +++ b/baselines/ts5.6/sharedworker.generated.d.ts @@ -601,12 +601,6 @@ interface IDBDatabaseInfo { version?: number; } -interface IDBGetAllOptions { - count?: number; - direction?: IDBCursorDirection; - query?: any; -} - interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -1185,7 +1179,6 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { - sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -5852,12 +5845,6 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -6040,12 +6027,6 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -6109,18 +6090,6 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ -interface IDBRecord { - readonly key: any; - readonly primaryKey: any; - readonly value: any; -} - -declare var IDBRecord: { - prototype: IDBRecord; - new(): IDBRecord; -}; - interface IDBRequestEventMap { "error": Event; "success": Event; @@ -7443,8 +7412,6 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; - readonly workerCacheLookupStart: DOMHighResTimeStamp; - readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -7826,12 +7793,6 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; - /** - * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) - */ - from(asyncIterable: any): ReadableStream; }; /** @@ -11876,7 +11837,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; - readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -11914,8 +11874,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ - createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -12010,8 +11968,6 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ - createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -12019,23 +11975,6 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) - */ -interface WebTransportDatagramsWritable extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ - sendGroup: WebTransportSendGroup | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ - sendOrder: number; -} - -declare var WebTransportDatagramsWritable: { - prototype: WebTransportDatagramsWritable; - new(): WebTransportDatagramsWritable; -}; - /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -12082,21 +12021,6 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) - */ -interface WebTransportSendGroup { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ - getStats(): Promise; -} - -declare var WebTransportSendGroup: { - prototype: WebTransportSendGroup; - new(): WebTransportSendGroup; -}; - /** * 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. @@ -12104,7 +12028,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -13380,7 +13303,7 @@ type ReportList = Report[]; type RequestInfo = Request | string; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | WebTransportDatagramsWritable | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index ba345d3dd..7ec31a503 100644 --- a/baselines/ts5.6/webworker.generated.d.ts +++ b/baselines/ts5.6/webworker.generated.d.ts @@ -748,12 +748,6 @@ interface IDBDatabaseInfo { version?: number; } -interface IDBGetAllOptions { - count?: number; - direction?: IDBCursorDirection; - query?: any; -} - interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -1151,25 +1145,6 @@ interface ResponseInit { statusText?: string; } -interface RouterCondition { - not?: RouterCondition; - or?: RouterCondition[]; - requestDestination?: RequestDestination; - requestMethod?: string; - requestMode?: RequestMode; - runningStatus?: RunningStatus; - urlPattern?: URLPatternCompatible; -} - -interface RouterRule { - condition: RouterCondition; - source: RouterSource; -} - -interface RouterSourceDict { - cacheName?: string; -} - interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } @@ -1551,7 +1526,6 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { - sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -6919,12 +6893,6 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -7107,12 +7075,6 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -7176,18 +7138,6 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ -interface IDBRecord { - readonly key: any; - readonly primaryKey: any; - readonly value: any; -} - -declare var IDBRecord: { - prototype: IDBRecord; - new(): IDBRecord; -}; - interface IDBRequestEventMap { "error": Event; "success": Event; @@ -7578,25 +7528,6 @@ interface ImportMeta { resolve(specifier: string): string; } -/** - * The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent) - */ -interface InstallEvent extends ExtendableEvent { - /** - * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) - */ - addRoutes(rules: RouterRule | RouterRule[]): Promise; -} - -declare var InstallEvent: { - prototype: InstallEvent; - new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent; -}; - /** * The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime. * @@ -8725,8 +8656,6 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; - readonly workerCacheLookupStart: DOMHighResTimeStamp; - readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -9432,12 +9361,6 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; - /** - * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) - */ - from(asyncIterable: any): ReadableStream; }; /** @@ -13955,7 +13878,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; - readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -13993,8 +13915,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ - createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -14089,8 +14009,6 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ - createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -14098,23 +14016,6 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) - */ -interface WebTransportDatagramsWritable extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ - sendGroup: WebTransportSendGroup | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ - sendOrder: number; -} - -declare var WebTransportDatagramsWritable: { - prototype: WebTransportDatagramsWritable; - new(): WebTransportDatagramsWritable; -}; - /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -14161,21 +14062,6 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) - */ -interface WebTransportSendGroup { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ - getStats(): Promise; -} - -declare var WebTransportSendGroup: { - prototype: WebTransportSendGroup; - new(): WebTransportSendGroup; -}; - /** * 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. @@ -14183,7 +14069,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -15543,11 +15428,9 @@ type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableSt type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type ReportList = Report[]; type RequestInfo = Request | string; -type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; -type URLPatternCompatible = string | URLPatternInit | URLPattern; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -15659,8 +15542,6 @@ type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; -type RouterSourceEnum = "cache" | "fetch-event" | "network" | "race-network-and-fetch-handler"; -type RunningStatus = "not-running" | "running"; type SecurityPolicyViolationEventDisposition = "enforce" | "report"; type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; diff --git a/baselines/ts5.6/webworker.iterable.generated.d.ts b/baselines/ts5.6/webworker.iterable.generated.d.ts index 6c8d5b104..049c52aeb 100644 --- a/baselines/ts5.6/webworker.iterable.generated.d.ts +++ b/baselines/ts5.6/webworker.iterable.generated.d.ts @@ -183,15 +183,6 @@ interface ImageTrackList { [Symbol.iterator](): ArrayIterator; } -interface InstallEvent { - /** - * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) - */ - addRoutes(rules: RouterRule | Iterable): Promise; -} - interface MessageEvent { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; diff --git a/baselines/ts5.9/audioworklet.generated.d.ts b/baselines/ts5.9/audioworklet.generated.d.ts index 652a452a0..047d68b93 100644 --- a/baselines/ts5.9/audioworklet.generated.d.ts +++ b/baselines/ts5.9/audioworklet.generated.d.ts @@ -959,12 +959,6 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; - /** - * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) - */ - from(asyncIterable: any): ReadableStream; }; /** diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index 168c58de0..7d8edfe73 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -333,11 +333,6 @@ interface BlobPropertyBag { type?: string; } -interface CSSContainerCondition { - name: string; - query: string; -} - interface CSSMatrixComponentOptions { is2D?: boolean; } @@ -1266,12 +1261,6 @@ interface IDBDatabaseInfo { version?: number; } -interface IDBGetAllOptions { - count?: number; - direction?: IDBCursorDirection; - query?: any; -} - interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -3257,7 +3246,6 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { - sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -4063,8 +4051,6 @@ declare var AnimationEffect: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent) */ interface AnimationEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animation) */ - readonly animation: CSSAnimation | null; /** * The **`AnimationEvent.animationName`** read-only property is a string containing the value of the animation-name CSS property associated with the transition. * @@ -5608,8 +5594,6 @@ declare var CSSConditionRule: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule) */ interface CSSContainerRule extends CSSConditionRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/conditions) */ - readonly conditions: ReadonlyArray; /** * The read-only **`containerName`** property of the CSSContainerRule interface represents the container name of the associated CSS @container at-rule. * @@ -5720,14 +5704,12 @@ interface CSSFontFaceDescriptors extends CSSStyleDeclarationBase { "font-stretch": string; "font-style": string; "font-weight": string; - "font-width": string; fontDisplay: string; fontFamily: string; fontFeatureSettings: string; fontStretch: string; fontStyle: string; fontWeight: string; - fontWidth: string; "size-adjust": string; sizeAdjust: string; src: string; @@ -8165,12 +8147,6 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/font-weight) */ fontWeight: string; - /** - * The font-width CSS property selects a normal, condensed, or expanded face from a font. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/font-width) - */ - fontWidth: string; /** * The forced-color-adjust CSS property allows authors to opt certain elements out of forced colors mode. This then restores the control of those values to CSS. * @@ -9062,12 +9038,6 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/ruby-align) */ rubyAlign: string; - /** - * The ruby-overhang CSS property specifies whether or not a annotation overhangs any surrounding text. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/ruby-overhang) - */ - rubyOverhang: string; /** * The ruby-position CSS property defines the position of a ruby element relative to its base element. It can be positioned over the element (over), under it (under), or between the characters on their right side (inter-character). * @@ -12909,12 +12879,6 @@ interface DeviceMotionEvent extends Event { declare var DeviceMotionEvent: { prototype: DeviceMotionEvent; new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; - /** - * The **`requestPermission()`** static method of the DeviceMotionEvent interface requests the user's permission to access device motion data from the accelerometer and gyroscope sensors. This method requires transient activation, meaning that it must be triggered by a UI event such as a button click. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/requestPermission_static) - */ - requestPermission(): Promise; }; /** @@ -13007,12 +12971,6 @@ interface DeviceOrientationEvent extends Event { declare var DeviceOrientationEvent: { prototype: DeviceOrientationEvent; new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; - /** - * The **`requestPermission()`** static method of the DeviceOrientationEvent interface requests the user's permission to access device orientation data from the accelerometer and gyroscope sensors. It can also request permission to access magnetometer data when absolute orientation is needed. This method requires transient activation, meaning that it must be triggered by a UI event such as a button click. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/requestPermission_static) - */ - requestPermission(absolute?: boolean): Promise; }; /** Available only in secure contexts. */ @@ -13698,12 +13656,6 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve declare var Document: { prototype: Document; new(): Document; - /** - * The **`parseHTML()`** static method of the Document object provides an XSS-safe method to parse and sanitize a string of HTML in order to create a new Document instance. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTML_static) - */ - parseHTML(html: string, options?: SetHTMLOptions): Document; /** * The **`parseHTMLUnsafe()`** static method of the Document object is used to parse HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance. * @@ -17815,7 +17767,6 @@ declare var HTMLBaseElement: { }; interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap { - "orientationchange": Event; } /** @@ -17833,8 +17784,6 @@ interface HTMLBodyElement extends HTMLElement, WindowEventHandlers { /** @deprecated */ link: string; /** @deprecated */ - onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null; - /** @deprecated */ text: string; /** @deprecated */ vLink: string; @@ -21153,23 +21102,6 @@ declare var HTMLSelectElement: { new(): HTMLSelectElement; }; -/** - * The **`HTMLSelectedContentElement`** interface represents a element in the DOM. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectedContentElement) - */ -interface HTMLSelectedContentElement extends HTMLElement { - addEventListener(type: K, listener: (this: HTMLSelectedContentElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLSelectedContentElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var HTMLSelectedContentElement: { - prototype: HTMLSelectedContentElement; - new(): HTMLSelectedContentElement; -}; - /** * The **`HTMLSlotElement`** interface of the Shadow DOM API enables access to the name and assigned nodes of an HTML element. * @@ -21875,8 +21807,6 @@ interface HTMLTemplateElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSerializable) */ shadowRootSerializable: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSlotAssignment) */ - shadowRootSlotAssignment: string; addEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -22848,12 +22778,6 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -23036,12 +22960,6 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -23105,18 +23023,6 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ -interface IDBRecord { - readonly key: any; - readonly primaryKey: any; - readonly value: any; -} - -declare var IDBRecord: { - prototype: IDBRecord; - new(): IDBRecord; -}; - interface IDBRequestEventMap { "error": Event; "success": Event; @@ -28705,8 +28611,6 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; - readonly workerCacheLookupStart: DOMHighResTimeStamp; - readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -29802,7 +29706,6 @@ interface RTCDtlsTransport extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) */ readonly state: RTCDtlsTransportState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/getRemoteCertificates) */ getRemoteCertificates(): ArrayBuffer[]; addEventListener(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -30048,12 +29951,12 @@ declare var RTCIceCandidate: { new(candidateInitDict?: RTCLocalIceCandidateInit): RTCIceCandidate; }; -/** - * The **`RTCIceCandidatePair`** dictionary describes a pair of ICE candidates which together comprise a description of a viable connection between two WebRTC endpoints. It is used as the return value from RTCIceTransport.getSelectedCandidatePair() to identify the currently-selected candidate pair identified by the ICE agent. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidatePair) - */ +/** The **`RTCIceCandidatePair`** dictionary describes a pair of ICE candidates which together comprise a description of a viable connection between two WebRTC endpoints. It is used as the return value from RTCIceTransport.getSelectedCandidatePair() to identify the currently-selected candidate pair identified by the ICE agent. */ interface RTCIceCandidatePair { + /** The **`local`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate which describes the configuration of the local end of a viable WebRTC connection. */ + local: RTCIceCandidate; + /** The **`remote`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate describing the configuration of the remote end of a viable WebRTC connection. */ + remote: RTCIceCandidate; } interface RTCIceTransportEventMap { @@ -31009,12 +30912,6 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; - /** - * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) - */ - from(asyncIterable: any): ReadableStream; }; /** @@ -36161,12 +36058,6 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/getHTML) */ getHTML(options?: GetHTMLOptions): string; - /** - * The **`setHTML()`** method of the ShadowRoot interface provides an XSS-safe method to parse and sanitize a string of HTML, which then replaces the existing tree in the Shadow DOM. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTML) - */ - setHTML(html: string, options?: SetHTMLOptions): void; /** * The **`setHTMLUnsafe()`** method of the ShadowRoot interface can be used to parse HTML input into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM. * @@ -38010,8 +37901,6 @@ declare var TransformStreamDefaultController: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent) */ interface TransitionEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/animation) */ - readonly animation: CSSTransition | null; /** * The **`TransitionEvent.elapsedTime`** read-only property is a float giving the amount of time the animation has been running, in seconds, when this event fired. This value is not affected by the transition-delay property. * @@ -38531,21 +38420,13 @@ declare var VTTCue: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion) */ interface VTTRegion { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/id) */ id: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/lines) */ lines: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorX) */ regionAnchorX: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorY) */ regionAnchorY: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/scroll) */ scroll: ScrollSetting; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorX) */ viewportAnchorX: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorY) */ viewportAnchorY: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/width) */ width: number; } @@ -41826,7 +41707,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; - readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -41864,8 +41744,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ - createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -41960,8 +41838,6 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ - createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -41969,23 +41845,6 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) - */ -interface WebTransportDatagramsWritable extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ - sendGroup: WebTransportSendGroup | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ - sendOrder: number; -} - -declare var WebTransportDatagramsWritable: { - prototype: WebTransportDatagramsWritable; - new(): WebTransportDatagramsWritable; -}; - /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -42032,21 +41891,6 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) - */ -interface WebTransportSendGroup { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ - getStats(): Promise; -} - -declare var WebTransportSendGroup: { - prototype: WebTransportSendGroup; - new(): WebTransportSendGroup; -}; - /** * 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. @@ -42054,7 +41898,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -43257,70 +43100,60 @@ declare var XPathResult: { /** * An **`XSLTProcessor`** applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output. It has methods to load the XSLT stylesheet, to manipulate parameter values, and to apply the transformation to documents. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor) */ interface XSLTProcessor { /** * The **`clearParameters()`** method of the XSLTProcessor interface removes all parameters () and their values from the stylesheet imported in the processor. The XSLTProcessor will then use the default values specified in the XSLT stylesheet. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/clearParameters) */ clearParameters(): void; /** * The **`getParameter()`** method of the XSLTProcessor interface returns the value of a parameter () from the stylesheet imported in the processor. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/getParameter) */ getParameter(namespaceURI: string | null, localName: string): any; /** * The **`importStylesheet()`** method of the XSLTProcessor interface imports an XSLT stylesheet for the processor. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/importStylesheet) */ importStylesheet(style: Node): void; /** * The **`removeParameter()`** method of the XSLTProcessor interface removes the parameter () and its value from the stylesheet imported in the processor. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/removeParameter) */ removeParameter(namespaceURI: string | null, localName: string): void; /** * The **`reset()`** method of the XSLTProcessor interface removes all parameters () and the XSLT stylesheet from the processor. The XSLTProcessor will then be in its original state when it was created. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/reset) */ reset(): void; /** * The **`setParameter()`** method of the XSLTProcessor interface sets the value of a parameter () in the stylesheet imported in the processor. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/setParameter) */ setParameter(namespaceURI: string | null, localName: string, value: any): void; /** * The **`transformToDocument()`** method of the XSLTProcessor interface transforms the provided Node source to a Document using the XSLT stylesheet associated with XSLTProcessor. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToDocument) */ transformToDocument(source: Node): Document; /** * The **`transformToFragment()`** method of the XSLTProcessor interface transforms a provided Node source to a DocumentFragment using the XSLT stylesheet associated with the XSLTProcessor. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToFragment) */ transformToFragment(source: Node, output: Document): DocumentFragment; } -/** @deprecated */ declare var XSLTProcessor: { prototype: XSLTProcessor; new(): XSLTProcessor; @@ -44218,7 +44051,6 @@ interface HTMLElementTagNameMap { "search": HTMLElement; "section": HTMLElement; "select": HTMLSelectElement; - "selectedcontent": HTMLSelectedContentElement; "slot": HTMLSlotElement; "small": HTMLElement; "source": HTMLSourceElement; @@ -45276,7 +45108,7 @@ type SanitizerPI = string | SanitizerProcessingInstruction; type SelectionDirection = "forward" | "backward" | "none"; type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; diff --git a/baselines/ts5.9/serviceworker.generated.d.ts b/baselines/ts5.9/serviceworker.generated.d.ts index 283a5af39..8967aaba6 100644 --- a/baselines/ts5.9/serviceworker.generated.d.ts +++ b/baselines/ts5.9/serviceworker.generated.d.ts @@ -657,12 +657,6 @@ interface IDBDatabaseInfo { version?: number; } -interface IDBGetAllOptions { - count?: number; - direction?: IDBCursorDirection; - query?: any; -} - interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -1000,25 +994,6 @@ interface ResponseInit { statusText?: string; } -interface RouterCondition { - not?: RouterCondition; - or?: RouterCondition[]; - requestDestination?: RequestDestination; - requestMethod?: string; - requestMode?: RequestMode; - runningStatus?: RunningStatus; - urlPattern?: URLPatternCompatible; -} - -interface RouterRule { - condition: RouterCondition; - source: RouterSource; -} - -interface RouterSourceDict { - cacheName?: string; -} - interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } @@ -1274,7 +1249,6 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { - sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -6188,12 +6162,6 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -6376,12 +6344,6 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -6445,18 +6407,6 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ -interface IDBRecord { - readonly key: any; - readonly primaryKey: any; - readonly value: any; -} - -declare var IDBRecord: { - prototype: IDBRecord; - new(): IDBRecord; -}; - interface IDBRequestEventMap { "error": Event; "success": Event; @@ -6708,25 +6658,6 @@ interface ImportMeta { resolve(specifier: string): string; } -/** - * The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent) - */ -interface InstallEvent extends ExtendableEvent { - /** - * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) - */ - addRoutes(rules: RouterRule | RouterRule[]): Promise; -} - -declare var InstallEvent: { - prototype: InstallEvent; - new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent; -}; - /** * The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime. * @@ -7823,8 +7754,6 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; - readonly workerCacheLookupStart: DOMHighResTimeStamp; - readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -8281,12 +8210,6 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; - /** - * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) - */ - from(asyncIterable: any): ReadableStream; }; /** @@ -12371,7 +12294,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; - readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -12409,8 +12331,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ - createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -12505,8 +12425,6 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ - createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -12514,23 +12432,6 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) - */ -interface WebTransportDatagramsWritable extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ - sendGroup: WebTransportSendGroup | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ - sendOrder: number; -} - -declare var WebTransportDatagramsWritable: { - prototype: WebTransportDatagramsWritable; - new(): WebTransportDatagramsWritable; -}; - /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -12577,21 +12478,6 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) - */ -interface WebTransportSendGroup { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ - getStats(): Promise; -} - -declare var WebTransportSendGroup: { - prototype: WebTransportSendGroup; - new(): WebTransportSendGroup; -}; - /** * 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. @@ -12599,7 +12485,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -13728,11 +13613,9 @@ type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableSt type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type ReportList = Report[]; type RequestInfo = Request | string; -type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | WebTransportDatagramsWritable | ArrayBuffer; -type URLPatternCompatible = string | URLPatternInit | URLPattern; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -13830,8 +13713,6 @@ type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; -type RouterSourceEnum = "cache" | "fetch-event" | "network" | "race-network-and-fetch-handler"; -type RunningStatus = "not-running" | "running"; type SecurityPolicyViolationEventDisposition = "enforce" | "report"; type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; diff --git a/baselines/ts5.9/serviceworker.iterable.generated.d.ts b/baselines/ts5.9/serviceworker.iterable.generated.d.ts index bdadc5b12..55e099512 100644 --- a/baselines/ts5.9/serviceworker.iterable.generated.d.ts +++ b/baselines/ts5.9/serviceworker.iterable.generated.d.ts @@ -179,15 +179,6 @@ interface IDBObjectStore { createIndex(name: string, keyPath: string | Iterable, options?: IDBIndexParameters): IDBIndex; } -interface InstallEvent { - /** - * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) - */ - addRoutes(rules: RouterRule | Iterable): Promise; -} - interface MessageEvent { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; diff --git a/baselines/ts5.9/sharedworker.generated.d.ts b/baselines/ts5.9/sharedworker.generated.d.ts index 93af5fc98..5606b402f 100644 --- a/baselines/ts5.9/sharedworker.generated.d.ts +++ b/baselines/ts5.9/sharedworker.generated.d.ts @@ -601,12 +601,6 @@ interface IDBDatabaseInfo { version?: number; } -interface IDBGetAllOptions { - count?: number; - direction?: IDBCursorDirection; - query?: any; -} - interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -1185,7 +1179,6 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { - sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -5852,12 +5845,6 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -6040,12 +6027,6 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -6109,18 +6090,6 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ -interface IDBRecord { - readonly key: any; - readonly primaryKey: any; - readonly value: any; -} - -declare var IDBRecord: { - prototype: IDBRecord; - new(): IDBRecord; -}; - interface IDBRequestEventMap { "error": Event; "success": Event; @@ -7443,8 +7412,6 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; - readonly workerCacheLookupStart: DOMHighResTimeStamp; - readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -7826,12 +7793,6 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; - /** - * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) - */ - from(asyncIterable: any): ReadableStream; }; /** @@ -11876,7 +11837,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; - readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -11914,8 +11874,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ - createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -12010,8 +11968,6 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ - createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -12019,23 +11975,6 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) - */ -interface WebTransportDatagramsWritable extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ - sendGroup: WebTransportSendGroup | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ - sendOrder: number; -} - -declare var WebTransportDatagramsWritable: { - prototype: WebTransportDatagramsWritable; - new(): WebTransportDatagramsWritable; -}; - /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -12082,21 +12021,6 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) - */ -interface WebTransportSendGroup { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ - getStats(): Promise; -} - -declare var WebTransportSendGroup: { - prototype: WebTransportSendGroup; - new(): WebTransportSendGroup; -}; - /** * 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. @@ -12104,7 +12028,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -13380,7 +13303,7 @@ type ReportList = Report[]; type RequestInfo = Request | string; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | WebTransportDatagramsWritable | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; diff --git a/baselines/ts5.9/webworker.generated.d.ts b/baselines/ts5.9/webworker.generated.d.ts index b2b0d0823..2b8ecf103 100644 --- a/baselines/ts5.9/webworker.generated.d.ts +++ b/baselines/ts5.9/webworker.generated.d.ts @@ -748,12 +748,6 @@ interface IDBDatabaseInfo { version?: number; } -interface IDBGetAllOptions { - count?: number; - direction?: IDBCursorDirection; - query?: any; -} - interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -1151,25 +1145,6 @@ interface ResponseInit { statusText?: string; } -interface RouterCondition { - not?: RouterCondition; - or?: RouterCondition[]; - requestDestination?: RequestDestination; - requestMethod?: string; - requestMode?: RequestMode; - runningStatus?: RunningStatus; - urlPattern?: URLPatternCompatible; -} - -interface RouterRule { - condition: RouterCondition; - source: RouterSource; -} - -interface RouterSourceDict { - cacheName?: string; -} - interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } @@ -1551,7 +1526,6 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { - sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -6919,12 +6893,6 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -7107,12 +7075,6 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -7176,18 +7138,6 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ -interface IDBRecord { - readonly key: any; - readonly primaryKey: any; - readonly value: any; -} - -declare var IDBRecord: { - prototype: IDBRecord; - new(): IDBRecord; -}; - interface IDBRequestEventMap { "error": Event; "success": Event; @@ -7578,25 +7528,6 @@ interface ImportMeta { resolve(specifier: string): string; } -/** - * The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent) - */ -interface InstallEvent extends ExtendableEvent { - /** - * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) - */ - addRoutes(rules: RouterRule | RouterRule[]): Promise; -} - -declare var InstallEvent: { - prototype: InstallEvent; - new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent; -}; - /** * The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime. * @@ -8725,8 +8656,6 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; - readonly workerCacheLookupStart: DOMHighResTimeStamp; - readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -9432,12 +9361,6 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; - /** - * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) - */ - from(asyncIterable: any): ReadableStream; }; /** @@ -13955,7 +13878,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; - readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -13993,8 +13915,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ - createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -14089,8 +14009,6 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ - createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -14098,23 +14016,6 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) - */ -interface WebTransportDatagramsWritable extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ - sendGroup: WebTransportSendGroup | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ - sendOrder: number; -} - -declare var WebTransportDatagramsWritable: { - prototype: WebTransportDatagramsWritable; - new(): WebTransportDatagramsWritable; -}; - /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -14161,21 +14062,6 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) - */ -interface WebTransportSendGroup { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ - getStats(): Promise; -} - -declare var WebTransportSendGroup: { - prototype: WebTransportSendGroup; - new(): WebTransportSendGroup; -}; - /** * 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. @@ -14183,7 +14069,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -15543,11 +15428,9 @@ type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableSt type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type ReportList = Report[]; type RequestInfo = Request | string; -type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; -type URLPatternCompatible = string | URLPatternInit | URLPattern; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -15659,8 +15542,6 @@ type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; -type RouterSourceEnum = "cache" | "fetch-event" | "network" | "race-network-and-fetch-handler"; -type RunningStatus = "not-running" | "running"; type SecurityPolicyViolationEventDisposition = "enforce" | "report"; type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; diff --git a/baselines/ts5.9/webworker.iterable.generated.d.ts b/baselines/ts5.9/webworker.iterable.generated.d.ts index 4d43a98f1..4507a3906 100644 --- a/baselines/ts5.9/webworker.iterable.generated.d.ts +++ b/baselines/ts5.9/webworker.iterable.generated.d.ts @@ -183,15 +183,6 @@ interface ImageTrackList { [Symbol.iterator](): ArrayIterator; } -interface InstallEvent { - /** - * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) - */ - addRoutes(rules: RouterRule | Iterable): Promise; -} - interface MessageEvent { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index d13dd788e..0596b83b3 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -751,12 +751,6 @@ interface IDBDatabaseInfo { version?: number; } -interface IDBGetAllOptions { - count?: number; - direction?: IDBCursorDirection; - query?: any; -} - interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -1154,25 +1148,6 @@ interface ResponseInit { statusText?: string; } -interface RouterCondition { - not?: RouterCondition; - or?: RouterCondition[]; - requestDestination?: RequestDestination; - requestMethod?: string; - requestMode?: RequestMode; - runningStatus?: RunningStatus; - urlPattern?: URLPatternCompatible; -} - -interface RouterRule { - condition: RouterCondition; - source: RouterSource; -} - -interface RouterSourceDict { - cacheName?: string; -} - interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } @@ -1554,7 +1529,6 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { - sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -6922,12 +6896,6 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange. * @@ -7110,12 +7078,6 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) - */ - getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store. * @@ -7179,18 +7141,6 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */ -interface IDBRecord { - readonly key: any; - readonly primaryKey: any; - readonly value: any; -} - -declare var IDBRecord: { - prototype: IDBRecord; - new(): IDBRecord; -}; - interface IDBRequestEventMap { "error": Event; "success": Event; @@ -7581,25 +7531,6 @@ interface ImportMeta { resolve(specifier: string): string; } -/** - * The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent) - */ -interface InstallEvent extends ExtendableEvent { - /** - * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) - */ - addRoutes(rules: RouterRule | RouterRule[]): Promise; -} - -declare var InstallEvent: { - prototype: InstallEvent; - new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent; -}; - /** * The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime. * @@ -8728,8 +8659,6 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; - readonly workerCacheLookupStart: DOMHighResTimeStamp; - readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0. * @@ -9435,12 +9364,6 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; - /** - * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) - */ - from(asyncIterable: any): ReadableStream; }; /** @@ -13958,7 +13881,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ readonly datagrams: WebTransportDatagramDuplexStream; - readonly draining: Promise; /** * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it. * @@ -13996,8 +13918,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */ - createSendGroup(): WebTransportSendGroup; /** * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream. * @@ -14092,8 +14012,6 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ readonly writable: WritableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */ - createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable; } declare var WebTransportDatagramDuplexStream: { @@ -14101,23 +14019,6 @@ declare var WebTransportDatagramDuplexStream: { new(): WebTransportDatagramDuplexStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable) - */ -interface WebTransportDatagramsWritable extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */ - sendGroup: WebTransportSendGroup | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */ - sendOrder: number; -} - -declare var WebTransportDatagramsWritable: { - prototype: WebTransportDatagramsWritable; - new(): WebTransportDatagramsWritable; -}; - /** * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). * Available only in secure contexts. @@ -14164,21 +14065,6 @@ declare var WebTransportReceiveStream: { new(): WebTransportReceiveStream; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup) - */ -interface WebTransportSendGroup { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */ - getStats(): Promise; -} - -declare var WebTransportSendGroup: { - prototype: WebTransportSendGroup; - new(): WebTransportSendGroup; -}; - /** * 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. @@ -14186,7 +14072,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - sendGroup: WebTransportSendGroup | null; /** * 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. * @@ -15546,11 +15431,9 @@ type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableSt type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type ReportList = Report[]; type RequestInfo = Request | string; -type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; -type URLPatternCompatible = string | URLPatternInit | URLPattern; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -15662,8 +15545,6 @@ type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; -type RouterSourceEnum = "cache" | "fetch-event" | "network" | "race-network-and-fetch-handler"; -type RunningStatus = "not-running" | "running"; type SecurityPolicyViolationEventDisposition = "enforce" | "report"; type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; @@ -15868,15 +15749,6 @@ interface ImageTrackList { [Symbol.iterator](): ArrayIterator; } -interface InstallEvent { - /** - * The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) - */ - addRoutes(rules: RouterRule | Iterable): Promise; -} - interface MessageEvent { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; diff --git a/package-lock.json b/package-lock.json index 5b506ac7f..6ec724350 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "Apache-2.0", "devDependencies": { "@eslint/js": "^10", - "@mdn/browser-compat-data": "^8.0.13", + "@mdn/browser-compat-data": "^8.0.1", "@octokit/rest": "^22.0.0", "@types/node": "^25.0.3", "@types/prettier": "^3.0.0", @@ -313,9 +313,9 @@ } }, "node_modules/@mdn/browser-compat-data": { - "version": "8.0.13", - "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-8.0.13.tgz", - "integrity": "sha512-jR1x+1UHDwYUBr2JLOuLucZGyAF7XphpxFbWQoUSwKgHt2zlMidfRSJ/0C3yC7vRBxMOjJF2edptu8kz0BGWrw==", + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-8.0.1.tgz", + "integrity": "sha512-po0/NXwUB3bc6DpYfAATqGBVwl4gfqmvWySixcBePwmOLTgsmwnwevRaIbs5glXucQLDpayGbh4C3hKIQr6l2A==", "dev": true, "license": "CC0-1.0", "peer": true From eabe67cb139888f17f8454387c2f471a8f74aa01 Mon Sep 17 00:00:00 2001 From: Bashamega Date: Fri, 28 Aug 2026 11:31:26 +0300 Subject: [PATCH 5/9] Reset package lock Signed-off-by: Bashamega --- package-lock.json | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6ec724350..b079570b5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -317,8 +317,7 @@ "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-8.0.1.tgz", "integrity": "sha512-po0/NXwUB3bc6DpYfAATqGBVwl4gfqmvWySixcBePwmOLTgsmwnwevRaIbs5glXucQLDpayGbh4C3hKIQr6l2A==", "dev": true, - "license": "CC0-1.0", - "peer": true + "license": "CC0-1.0" }, "node_modules/@octokit/auth-token": { "version": "6.0.0", @@ -335,7 +334,6 @@ "integrity": "sha512-DhGl4xMVFGVIyMwswXeyzdL4uXD5OGILGX5N8Y+f6W7LhC1Ze2poSNrkF/fedpVDHEEZ+PHFW0vL14I+mm8K3Q==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@octokit/auth-token": "^6.0.0", "@octokit/graphql": "^9.0.3", @@ -743,7 +741,6 @@ "integrity": "sha512-X6ypGChaWYk6PBtUg2BwuTZEFFcHJAtGTVJ9/lCTOufhZ4i9fNolQNnktq+kkMCwMj7V8Svsq7+TxSDslmhE0g==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@typescript-eslint/scope-manager": "8.66.0", "@typescript-eslint/types": "8.66.0", @@ -1101,9 +1098,9 @@ "license": "MIT" }, "node_modules/@webref/events": { - "version": "1.18.6", - "resolved": "https://registry.npmjs.org/@webref/events/-/events-1.18.6.tgz", - "integrity": "sha512-uYcKX7k5/0lBVWirRLzKvBipxh+GdcRn9d6ufaAuE8UFB5T+v+6+gGGwyI10ULoVfTNFFimr4dNn8jJqIFMMDA==", + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/@webref/events/-/events-1.24.0.tgz", + "integrity": "sha512-S2T5MLXt77Mgy+Sna6ThGDQYCvO71lg5Skh5cUgkxrz4aXUexw28rdweB+LS3OvTbY48K7AdXeOJWYSl0dk36g==", "dev": true, "license": "MIT" }, @@ -1113,7 +1110,6 @@ "integrity": "sha512-E8xHSmlr/LyRNtyEiFHRSpWDIw6XzaPxO5Q6F/fcy9kfqJvDz2IGbardUYOoW6SGdclK1imZl5AziK555dbcIg==", "dev": true, "license": "MIT", - "peer": true, "peerDependencies": { "webidl2": "^24.5.0" } @@ -1124,7 +1120,6 @@ "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==", "dev": true, "license": "MIT", - "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -1502,7 +1497,6 @@ "integrity": "sha512-dKYCMuPO1bmrpuogcjQ8z7ICCH3FP6WmxpwC03yjzGfZhj9fTJg6+bS1+UAplekbN2C+M61UNllGOOoAfGCrdQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@octokit/auth-token": "^4.0.0", "@octokit/graphql": "^7.1.0", @@ -1776,7 +1770,6 @@ "integrity": "sha512-wqA7W2jbsC/BnV9Iv1UZpKVFkO1AdNoSmYW8NWG4HNOBbkAMvIqDZ27pI2f07dqn583NcIC44ckjAcOXDL1QbQ==", "dev": true, "license": "MIT", - "peer": true, "workspaces": [ "packages/*" ], @@ -1836,7 +1829,6 @@ "integrity": "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==", "dev": true, "license": "MIT", - "peer": true, "bin": { "eslint-config-prettier": "bin/cli.js" }, @@ -2588,7 +2580,8 @@ "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.27.1.tgz", "integrity": "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==", "dev": true, - "license": "CC0-1.0" + "license": "CC0-1.0", + "peer": true }, "node_modules/memfs-or-file-map-to-github-branch": { "version": "1.3.0", @@ -2869,7 +2862,6 @@ "integrity": "sha512-7igPTM53cGHMW8xWuVTydi2KO233VFiTNyF5hLJqpilHfmn8C8gPf+PS7dUT64YcXFbiMGZxS9pCSxL/Dxm/Jw==", "dev": true, "license": "MIT", - "peer": true, "bin": { "prettier": "bin/prettier.cjs" }, @@ -3126,6 +3118,7 @@ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", "dev": true, "license": "BSD-3-Clause", + "peer": true, "engines": { "node": ">=0.10.0" } @@ -3252,7 +3245,6 @@ "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -3310,7 +3302,6 @@ "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", "dev": true, "license": "Apache-2.0", - "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -3380,7 +3371,6 @@ "integrity": "sha512-fxOigKkIem1iAgQ9t4cFOP+kWEA8y6Be/uh50FpJh0FijoeeT/VMrOyJzNLUgjy0rGMEcHeReKDCqj0g9dIe9A==", "dev": true, "license": "W3C", - "peer": true, "engines": { "node": ">= 18" } From d561325845d6138f2e81481325b72d5764068c79 Mon Sep 17 00:00:00 2001 From: Bashamega Date: Fri, 28 Aug 2026 12:29:41 +0300 Subject: [PATCH 6/9] Apply comments --- src/build.ts | 4 +--- src/build/emitter.ts | 11 ++++------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/src/build.ts b/src/build.ts index 4f5a57700..8a51d1273 100644 --- a/src/build.ts +++ b/src/build.ts @@ -279,9 +279,7 @@ async function emitDom() { // ts5.5 (and earlier) { outputFolder: new URL("./ts5.5/", outputFolder), - compilerBehavior: { - treatAsyncSequence: false, - }, // ts5.5 does not support `IteratorObject` or unrelated setter types + compilerBehavior: {}, // ts5.5 does not support `IteratorObject` or unrelated setter types }, ]; diff --git a/src/build/emitter.ts b/src/build/emitter.ts index 9aacc69be..b400b84cd 100644 --- a/src/build/emitter.ts +++ b/src/build/emitter.ts @@ -132,7 +132,7 @@ export interface CompilerBehavior { allowUnrelatedSetterType?: boolean; useGenericTypedArrays?: boolean; includeIterable?: boolean; - /** If true, treat async_sequence as AsyncIterable, otherwise as any (legacy < TS 2.3 emit). */ + /** If true, treat async_sequence as AsyncIterable, otherwise as any (legacy < TS 4.4 emit). */ treatAsyncSequence?: boolean; } @@ -409,13 +409,10 @@ export function emitWebIdl( function convertBaseType() { // Support async_sequence (see https://github.com/whatwg/streams/pull/1372) if (obj.type === "async_sequence") { - // If we're in a build that includes async iterables (TS 2.3+ or forced), emit as AsyncIterable. - // For TS <2.3, the generator separates out [Symbol.asyncIterator] into *.asynciterable.d.ts, so + // If we're in a build that includes async iterables (TS 4.4+ or forced), emit as AsyncIterable. + // For TS <4.4, the generator separates out [Symbol.asyncIterator] into *.asynciterable.d.ts, so // these references must not leak into the main file, so we can treat them as `any` as a fallback. if (compilerBehavior.treatAsyncSequence) { - // Forwards-compatible definition: - // NOTE: In IDL→TS (whatwg/streams#1372 etc) async_sequence -> AsyncIterable - // If stricter interop wanted, could use AsyncIterable | Iterable const subtype = arrayify(obj.subtype) .map((t) => convertDomTypeToTsTypeBase(t, forReturn)) .join(", "); @@ -427,7 +424,7 @@ export function emitWebIdl( } return "AsyncIterable"; } else { - // Legacy main & fallback builds: no async iterable interface available. + // Legacy TypeScript versions: no async iterable interface available. return "any"; } } From afc900041f57901e1353ddbec393878e2edb9fbd Mon Sep 17 00:00:00 2001 From: Bashamega Date: Fri, 28 Aug 2026 12:40:47 +0300 Subject: [PATCH 7/9] Refactor async_sequence handling in emitWebIdl to skip generation and warn for TypeScript versions below 6.0 --- src/build/emitter.ts | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/src/build/emitter.ts b/src/build/emitter.ts index b400b84cd..75725e4a1 100644 --- a/src/build/emitter.ts +++ b/src/build/emitter.ts @@ -409,24 +409,13 @@ export function emitWebIdl( function convertBaseType() { // Support async_sequence (see https://github.com/whatwg/streams/pull/1372) if (obj.type === "async_sequence") { - // If we're in a build that includes async iterables (TS 4.4+ or forced), emit as AsyncIterable. - // For TS <4.4, the generator separates out [Symbol.asyncIterator] into *.asynciterable.d.ts, so - // these references must not leak into the main file, so we can treat them as `any` as a fallback. - if (compilerBehavior.treatAsyncSequence) { - const subtype = arrayify(obj.subtype) - .map((t) => convertDomTypeToTsTypeBase(t, forReturn)) - .join(", "); - // The assignment to `subtype` is only needed to validate/trigger side-effects, - // but its value is not used because we always return "AsyncIterable" - // unless subtype is empty, in which case we substitute "any" - if (!subtype) { - return "AsyncIterable"; - } - return "AsyncIterable"; - } else { - // Legacy TypeScript versions: no async iterable interface available. - return "any"; - } + // AsyncIterable requires separate asynciterable.d.ts until TS 6.0. + // To make it correct, we need to defer any functions using async_sequence to the asynciterable variant. + // For now, skip generation and warn. + console.warn( + "Skipping generation for a function or property with async_sequence type: " + JSON.stringify(obj) + ); + return "never"; // Use 'never' to signal omission in type generation } if (obj.type === "sequence" && !forReturn && iterator !== "") { return "Iterable"; From f47f00a4dd96b2b034c72ef48571347b6120b7ce Mon Sep 17 00:00:00 2001 From: Bashamega Date: Fri, 28 Aug 2026 12:42:33 +0300 Subject: [PATCH 8/9] lint --- src/build/emitter.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/build/emitter.ts b/src/build/emitter.ts index 75725e4a1..bf89d42da 100644 --- a/src/build/emitter.ts +++ b/src/build/emitter.ts @@ -413,7 +413,8 @@ export function emitWebIdl( // To make it correct, we need to defer any functions using async_sequence to the asynciterable variant. // For now, skip generation and warn. console.warn( - "Skipping generation for a function or property with async_sequence type: " + JSON.stringify(obj) + "Skipping generation for a function or property with async_sequence type: " + + JSON.stringify(obj), ); return "never"; // Use 'never' to signal omission in type generation } From afb7d5ad82ff93904a1c0e0205956d7b1e81e077 Mon Sep 17 00:00:00 2001 From: Bashamega Date: Fri, 28 Aug 2026 14:10:40 +0300 Subject: [PATCH 9/9] Remove 'treatAsyncSequence' option from compilerBehavior in emitDom function --- src/build.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/build.ts b/src/build.ts index 8a51d1273..40a8304f0 100644 --- a/src/build.ts +++ b/src/build.ts @@ -273,7 +273,6 @@ async function emitDom() { compilerBehavior: { useIteratorObject: true, allowUnrelatedSetterType: true, - treatAsyncSequence: false, }, }, // ts5.5 (and earlier)