From 19d0dc99bcecaf48c9d2ebff0dae3521a762caf9 Mon Sep 17 00:00:00 2001 From: Bashamega Date: Sat, 5 Sep 2026 11:49:48 +0300 Subject: [PATCH 1/3] Update TypeScript definitions and dependencies --- baselines/audioworklet.generated.d.ts | 6 + baselines/dom.generated.d.ts | 195 ++++++++++++++++-- baselines/serviceworker.generated.d.ts | 132 +++++++++++- baselines/sharedworker.generated.d.ts | 81 +++++++- baselines/ts5.5/audioworklet.generated.d.ts | 6 + baselines/ts5.5/dom.generated.d.ts | 195 ++++++++++++++++-- baselines/ts5.5/serviceworker.generated.d.ts | 123 ++++++++++- .../serviceworker.iterable.generated.d.ts | 9 + baselines/ts5.5/sharedworker.generated.d.ts | 81 +++++++- baselines/ts5.5/webworker.generated.d.ts | 123 ++++++++++- .../ts5.5/webworker.iterable.generated.d.ts | 9 + baselines/ts5.6/audioworklet.generated.d.ts | 6 + baselines/ts5.6/dom.generated.d.ts | 195 ++++++++++++++++-- baselines/ts5.6/serviceworker.generated.d.ts | 123 ++++++++++- .../serviceworker.iterable.generated.d.ts | 9 + baselines/ts5.6/sharedworker.generated.d.ts | 81 +++++++- baselines/ts5.6/webworker.generated.d.ts | 123 ++++++++++- .../ts5.6/webworker.iterable.generated.d.ts | 9 + baselines/ts5.9/audioworklet.generated.d.ts | 6 + baselines/ts5.9/dom.generated.d.ts | 195 ++++++++++++++++-- baselines/ts5.9/serviceworker.generated.d.ts | 123 ++++++++++- .../serviceworker.iterable.generated.d.ts | 9 + baselines/ts5.9/sharedworker.generated.d.ts | 81 +++++++- baselines/ts5.9/webworker.generated.d.ts | 123 ++++++++++- .../ts5.9/webworker.iterable.generated.d.ts | 9 + baselines/webworker.generated.d.ts | 132 +++++++++++- package-lock.json | 26 ++- src/build/emitter.ts | 3 + 28 files changed, 2145 insertions(+), 68 deletions(-) diff --git a/baselines/audioworklet.generated.d.ts b/baselines/audioworklet.generated.d.ts index dc7ea4402..9f4684b6c 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: never): ReadableStream; }; /** diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 5a2461861..72385bd37 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. * @@ -17328,7 +17376,6 @@ interface GlobalEventHandlers { onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) */ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; @@ -17376,7 +17423,6 @@ interface GlobalEventHandlers { onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */ onerror: OnErrorEventHandler; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) */ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; @@ -17542,24 +17588,28 @@ interface GlobalEventHandlers { /** * The **`HTMLAllCollection`** interface represents a collection of all of the document's elements, accessible by index (like an array) and by the element's id. It is returned by the document.all property. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection) */ interface HTMLAllCollection { /** * The **`HTMLAllCollection.length`** property returns the number of items in this HTMLAllCollection. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/length) */ readonly length: number; /** * The **`item()`** method of the HTMLAllCollection interface returns the element located at the specified offset into the collection, or the element with the specified value for its id or name attribute. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/item) */ item(nameOrIndex?: string): HTMLCollection | Element | null; /** * The **`namedItem()`** method of the HTMLAllCollection interface returns the first Element in the collection whose id or name attribute matches the specified name, or null if no element matches. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/namedItem) */ @@ -17567,6 +17617,7 @@ interface HTMLAllCollection { [index: number]: Element; } +/** @deprecated */ declare var HTMLAllCollection: { prototype: HTMLAllCollection; new(): HTMLAllCollection; @@ -17770,6 +17821,7 @@ declare var HTMLBaseElement: { }; interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap { + "orientationchange": Event; } /** @@ -17787,6 +17839,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 +21159,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 +21881,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 +22854,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 +23042,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 +23111,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; @@ -27508,9 +27605,9 @@ declare var PageTransitionEvent: { }; interface PaintTimingMixin { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/paintTime) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InteractionContentfulPaint/paintTime) */ readonly paintTime: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/presentationTime) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InteractionContentfulPaint/presentationTime) */ readonly presentationTime: DOMHighResTimeStamp | null; } @@ -28614,6 +28711,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 +29808,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 +30054,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 +31015,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: never): ReadableStream; }; /** @@ -36061,6 +36167,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 +38016,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 +38537,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 +41832,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. * @@ -41722,6 +41845,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -41747,6 +41871,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 +41967,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 +41976,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 +42039,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 +42061,8 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ + 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 +43265,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 +44226,7 @@ interface HTMLElementTagNameMap { "search": HTMLElement; "section": HTMLElement; "select": HTMLSelectElement; + "selectedcontent": HTMLSelectedContentElement; "slot": HTMLSlotElement; "small": HTMLElement; "source": HTMLSourceElement; @@ -44706,7 +44879,6 @@ declare var onbeforematch: ((this: Window, ev: Event) => any) | null; declare var onbeforetoggle: ((this: Window, ev: ToggleEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */ declare var onblur: ((this: Window, ev: FocusEvent) => any) | null; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ declare var oncancel: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) */ declare var oncanplay: ((this: Window, ev: Event) => any) | null; @@ -44754,7 +44926,6 @@ declare var ondurationchange: ((this: Window, ev: Event) => any) | null; declare var onemptied: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */ declare var onended: ((this: Window, ev: Event) => any) | null; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */ declare var onerror: OnErrorEventHandler; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) */ declare var onfocus: ((this: Window, ev: FocusEvent) => any) | null; @@ -45111,7 +45282,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 190881a28..56b3ae869 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: never): 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. * @@ -12309,6 +12387,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -12334,6 +12413,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 +12509,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 +12518,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 +12581,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 +12603,8 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ + 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 +13733,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 +13835,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 +14031,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 602f794ec..c859c9fe5 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: never): 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. * @@ -11852,6 +11892,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -11877,6 +11918,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 +12014,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 +12023,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 +12086,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 +12108,8 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ + 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 +13385,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..e044ffe47 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: never): ReadableStream; }; /** diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index d9c69a0a2..66382edc7 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. * @@ -17314,7 +17362,6 @@ interface GlobalEventHandlers { onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) */ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; @@ -17362,7 +17409,6 @@ interface GlobalEventHandlers { onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */ onerror: OnErrorEventHandler; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) */ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; @@ -17528,24 +17574,28 @@ interface GlobalEventHandlers { /** * The **`HTMLAllCollection`** interface represents a collection of all of the document's elements, accessible by index (like an array) and by the element's id. It is returned by the document.all property. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection) */ interface HTMLAllCollection { /** * The **`HTMLAllCollection.length`** property returns the number of items in this HTMLAllCollection. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/length) */ readonly length: number; /** * The **`item()`** method of the HTMLAllCollection interface returns the element located at the specified offset into the collection, or the element with the specified value for its id or name attribute. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/item) */ item(nameOrIndex?: string): HTMLCollection | Element | null; /** * The **`namedItem()`** method of the HTMLAllCollection interface returns the first Element in the collection whose id or name attribute matches the specified name, or null if no element matches. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/namedItem) */ @@ -17553,6 +17603,7 @@ interface HTMLAllCollection { [index: number]: Element; } +/** @deprecated */ declare var HTMLAllCollection: { prototype: HTMLAllCollection; new(): HTMLAllCollection; @@ -17754,6 +17805,7 @@ declare var HTMLBaseElement: { }; interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap { + "orientationchange": Event; } /** @@ -17771,6 +17823,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 +21136,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 +21857,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 +22830,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 +23018,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 +23087,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; @@ -27484,9 +27581,9 @@ declare var PageTransitionEvent: { }; interface PaintTimingMixin { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/paintTime) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InteractionContentfulPaint/paintTime) */ readonly paintTime: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/presentationTime) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InteractionContentfulPaint/presentationTime) */ readonly presentationTime: DOMHighResTimeStamp | null; } @@ -28590,6 +28687,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 +29784,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 +30030,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 +30991,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: never): ReadableStream; }; /** @@ -36036,6 +36142,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 +37990,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 +38511,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 +41806,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. * @@ -41696,6 +41819,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -41721,6 +41845,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 +41941,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 +41950,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 +42013,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 +42035,8 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ + 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 +43239,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 +44200,7 @@ interface HTMLElementTagNameMap { "search": HTMLElement; "section": HTMLElement; "select": HTMLSelectElement; + "selectedcontent": HTMLSelectedContentElement; "slot": HTMLSlotElement; "small": HTMLElement; "source": HTMLSourceElement; @@ -44680,7 +44853,6 @@ declare var onbeforematch: ((this: Window, ev: Event) => any) | null; declare var onbeforetoggle: ((this: Window, ev: ToggleEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */ declare var onblur: ((this: Window, ev: FocusEvent) => any) | null; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ declare var oncancel: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) */ declare var oncanplay: ((this: Window, ev: Event) => any) | null; @@ -44728,7 +44900,6 @@ declare var ondurationchange: ((this: Window, ev: Event) => any) | null; declare var onemptied: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */ declare var onended: ((this: Window, ev: Event) => any) | null; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */ declare var onerror: OnErrorEventHandler; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) */ declare var onfocus: ((this: Window, ev: FocusEvent) => any) | null; @@ -45085,7 +45256,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 afc9c9702..69efb44df 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: never): 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. * @@ -12306,6 +12384,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -12331,6 +12410,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 +12506,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 +12515,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 +12578,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 +12600,8 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ + 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 +13730,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 +13832,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 272a4fc47..728cd1cf2 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: never): 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. * @@ -11849,6 +11889,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -11874,6 +11915,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 +12011,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 +12020,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 +12083,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 +12105,8 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ + 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 +13382,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 e74ca3fe4..3ebd99dcd 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: never): 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. * @@ -13890,6 +13968,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -13915,6 +13994,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 +14090,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 +14099,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 +14162,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 +14184,8 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ + 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 +15545,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 +15661,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..e044ffe47 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: never): ReadableStream; }; /** diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index cc48e9241..641e1fdd2 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. * @@ -17325,7 +17373,6 @@ interface GlobalEventHandlers { onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) */ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; @@ -17373,7 +17420,6 @@ interface GlobalEventHandlers { onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */ onerror: OnErrorEventHandler; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) */ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; @@ -17539,24 +17585,28 @@ interface GlobalEventHandlers { /** * The **`HTMLAllCollection`** interface represents a collection of all of the document's elements, accessible by index (like an array) and by the element's id. It is returned by the document.all property. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection) */ interface HTMLAllCollection { /** * The **`HTMLAllCollection.length`** property returns the number of items in this HTMLAllCollection. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/length) */ readonly length: number; /** * The **`item()`** method of the HTMLAllCollection interface returns the element located at the specified offset into the collection, or the element with the specified value for its id or name attribute. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/item) */ item(nameOrIndex?: string): HTMLCollection | Element | null; /** * The **`namedItem()`** method of the HTMLAllCollection interface returns the first Element in the collection whose id or name attribute matches the specified name, or null if no element matches. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/namedItem) */ @@ -17564,6 +17614,7 @@ interface HTMLAllCollection { [index: number]: Element; } +/** @deprecated */ declare var HTMLAllCollection: { prototype: HTMLAllCollection; new(): HTMLAllCollection; @@ -17767,6 +17818,7 @@ declare var HTMLBaseElement: { }; interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap { + "orientationchange": Event; } /** @@ -17784,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; @@ -21102,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. * @@ -21807,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; @@ -22778,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. * @@ -22960,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. * @@ -23023,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; @@ -27505,9 +27602,9 @@ declare var PageTransitionEvent: { }; interface PaintTimingMixin { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/paintTime) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InteractionContentfulPaint/paintTime) */ readonly paintTime: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/presentationTime) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InteractionContentfulPaint/presentationTime) */ readonly presentationTime: DOMHighResTimeStamp | null; } @@ -28611,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. * @@ -29706,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; @@ -29951,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 { @@ -30912,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: never): ReadableStream; }; /** @@ -36058,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. * @@ -37901,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. * @@ -38420,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; } @@ -41707,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. * @@ -41719,6 +41842,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -41744,6 +41868,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 +41964,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 +41973,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 +42036,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 +42058,8 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ + 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 +43262,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 +44223,7 @@ interface HTMLElementTagNameMap { "search": HTMLElement; "section": HTMLElement; "select": HTMLSelectElement; + "selectedcontent": HTMLSelectedContentElement; "slot": HTMLSlotElement; "small": HTMLElement; "source": HTMLSourceElement; @@ -44703,7 +44876,6 @@ declare var onbeforematch: ((this: Window, ev: Event) => any) | null; declare var onbeforetoggle: ((this: Window, ev: ToggleEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */ declare var onblur: ((this: Window, ev: FocusEvent) => any) | null; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ declare var oncancel: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) */ declare var oncanplay: ((this: Window, ev: Event) => any) | null; @@ -44751,7 +44923,6 @@ declare var ondurationchange: ((this: Window, ev: Event) => any) | null; declare var onemptied: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */ declare var onended: ((this: Window, ev: Event) => any) | null; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */ declare var onerror: OnErrorEventHandler; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) */ declare var onfocus: ((this: Window, ev: FocusEvent) => any) | null; @@ -45108,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/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index afc9c9702..69efb44df 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: never): 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. * @@ -12306,6 +12384,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -12331,6 +12410,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 +12506,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 +12515,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 +12578,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 +12600,8 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ + 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 +13730,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 +13832,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 272a4fc47..728cd1cf2 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: never): 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. * @@ -11849,6 +11889,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -11874,6 +11915,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 +12011,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 +12020,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 +12083,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 +12105,8 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ + 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 +13382,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 e74ca3fe4..3ebd99dcd 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: never): 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. * @@ -13890,6 +13968,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -13915,6 +13994,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 +14090,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 +14099,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 +14162,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 +14184,8 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ + 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 +15545,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 +15661,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..33aca5022 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: never): ReadableStream; }; /** diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index 7dfaa966b..92ce22815 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. * @@ -17325,7 +17373,6 @@ interface GlobalEventHandlers { onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) */ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; @@ -17373,7 +17420,6 @@ interface GlobalEventHandlers { onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */ onerror: OnErrorEventHandler; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) */ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; @@ -17539,24 +17585,28 @@ interface GlobalEventHandlers { /** * The **`HTMLAllCollection`** interface represents a collection of all of the document's elements, accessible by index (like an array) and by the element's id. It is returned by the document.all property. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection) */ interface HTMLAllCollection { /** * The **`HTMLAllCollection.length`** property returns the number of items in this HTMLAllCollection. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/length) */ readonly length: number; /** * The **`item()`** method of the HTMLAllCollection interface returns the element located at the specified offset into the collection, or the element with the specified value for its id or name attribute. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/item) */ item(nameOrIndex?: string): HTMLCollection | Element | null; /** * The **`namedItem()`** method of the HTMLAllCollection interface returns the first Element in the collection whose id or name attribute matches the specified name, or null if no element matches. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/namedItem) */ @@ -17564,6 +17614,7 @@ interface HTMLAllCollection { [index: number]: Element; } +/** @deprecated */ declare var HTMLAllCollection: { prototype: HTMLAllCollection; new(): HTMLAllCollection; @@ -17767,6 +17818,7 @@ declare var HTMLBaseElement: { }; interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap { + "orientationchange": Event; } /** @@ -17784,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; @@ -21102,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. * @@ -21807,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; @@ -22778,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. * @@ -22960,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. * @@ -23023,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; @@ -27505,9 +27602,9 @@ declare var PageTransitionEvent: { }; interface PaintTimingMixin { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/paintTime) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InteractionContentfulPaint/paintTime) */ readonly paintTime: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/presentationTime) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InteractionContentfulPaint/presentationTime) */ readonly presentationTime: DOMHighResTimeStamp | null; } @@ -28611,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. * @@ -29706,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; @@ -29951,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 { @@ -30912,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: never): ReadableStream; }; /** @@ -36058,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. * @@ -37901,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. * @@ -38420,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; } @@ -41707,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. * @@ -41719,6 +41842,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -41744,6 +41868,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 +41964,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 +41973,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 +42036,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 +42058,8 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ + 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 +43262,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 +44223,7 @@ interface HTMLElementTagNameMap { "search": HTMLElement; "section": HTMLElement; "select": HTMLSelectElement; + "selectedcontent": HTMLSelectedContentElement; "slot": HTMLSlotElement; "small": HTMLElement; "source": HTMLSourceElement; @@ -44703,7 +44876,6 @@ declare var onbeforematch: ((this: Window, ev: Event) => any) | null; declare var onbeforetoggle: ((this: Window, ev: ToggleEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */ declare var onblur: ((this: Window, ev: FocusEvent) => any) | null; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ declare var oncancel: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) */ declare var oncanplay: ((this: Window, ev: Event) => any) | null; @@ -44751,7 +44923,6 @@ declare var ondurationchange: ((this: Window, ev: Event) => any) | null; declare var onemptied: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */ declare var onended: ((this: Window, ev: Event) => any) | null; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */ declare var onerror: OnErrorEventHandler; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) */ declare var onfocus: ((this: Window, ev: FocusEvent) => any) | null; @@ -45108,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/ts5.9/serviceworker.generated.d.ts b/baselines/ts5.9/serviceworker.generated.d.ts index 377ca282f..3e48e8415 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: never): 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. * @@ -12306,6 +12384,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -12331,6 +12410,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 +12506,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 +12515,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 +12578,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 +12600,8 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ + 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 +13730,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 +13832,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 ef5f13c4b..9795992fe 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: never): 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. * @@ -11849,6 +11889,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -11874,6 +11915,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 +12011,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 +12020,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 +12083,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 +12105,8 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ + 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 +13382,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 69f511463..25755c622 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: never): 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. * @@ -13890,6 +13968,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -13915,6 +13994,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 +14090,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 +14099,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 +14162,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 +14184,8 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ + 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 +15545,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 +15661,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 45364e7b8..1d0d2aac0 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: never): 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. * @@ -13893,6 +13971,7 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -13918,6 +13997,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 +14093,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 +14102,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 +14165,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 +14187,8 @@ declare var WebTransportReceiveStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ + 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 +15548,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 +15664,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 +15870,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 e2ce6ec51..dc8414075 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.1.0", "@octokit/rest": "^22.0.0", "@types/node": "^25.0.3", "@types/prettier": "^3.0.0", @@ -316,11 +316,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.1.0", + "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-8.1.0.tgz", + "integrity": "sha512-BNlUjp+9O6gtIHPVZEGFb5rgtuWW8weR+mSKfLOevxbfoZv5DRe3N4ZTEpXiIm5wfR7+kqHu8malCCgP6USrlg==", "dev": true, - "license": "CC0-1.0" + "license": "CC0-1.0", + "peer": true }, "node_modules/@octokit/auth-token": { "version": "6.0.0", @@ -337,6 +338,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", @@ -744,6 +746,7 @@ "integrity": "sha512-fHq2VC1kpyYfvEcbiMjOpySY4WS7voEp89yAThrHRX5sm9j2lzYppCb2umFMEed4fWcyeLjHxrz0mpjNBaBxMQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@typescript-eslint/scope-manager": "8.68.0", "@typescript-eslint/types": "8.68.0", @@ -1113,6 +1116,7 @@ "integrity": "sha512-Pb/NhQs3BgbLf1rNhOGMc5xoSqPaaR4Jw8RceBw3gIE8aDQkjTHwD9+KuAH1imFxU0mMubdXOcj1GEkJMwRLGQ==", "dev": true, "license": "MIT", + "peer": true, "peerDependencies": { "webidl2": "^24.5.0" } @@ -1123,6 +1127,7 @@ "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==", "dev": true, "license": "MIT", + "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -1500,6 +1505,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", @@ -1773,6 +1779,7 @@ "integrity": "sha512-9VaAkDURekixUQJy0oJYl2DcN6oKMfxay7XzaGYAWQwsb6qfKf+x76R2k1L8kb1boc+FyCAaTA9GmiKaaiaF+A==", "dev": true, "license": "MIT", + "peer": true, "workspaces": [ "packages/*" ], @@ -1832,6 +1839,7 @@ "integrity": "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==", "dev": true, "license": "MIT", + "peer": true, "bin": { "eslint-config-prettier": "bin/cli.js" }, @@ -2583,8 +2591,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", @@ -2865,6 +2872,7 @@ "integrity": "sha512-7igPTM53cGHMW8xWuVTydi2KO233VFiTNyF5hLJqpilHfmn8C8gPf+PS7dUT64YcXFbiMGZxS9pCSxL/Dxm/Jw==", "dev": true, "license": "MIT", + "peer": true, "bin": { "prettier": "bin/prettier.cjs" }, @@ -3121,7 +3129,6 @@ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", "dev": true, "license": "BSD-3-Clause", - "peer": true, "engines": { "node": ">=0.10.0" } @@ -3248,6 +3255,7 @@ "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -3305,6 +3313,7 @@ "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", "dev": true, "license": "Apache-2.0", + "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -3374,6 +3383,7 @@ "integrity": "sha512-fxOigKkIem1iAgQ9t4cFOP+kWEA8y6Be/uh50FpJh0FijoeeT/VMrOyJzNLUgjy0rGMEcHeReKDCqj0g9dIe9A==", "dev": true, "license": "W3C", + "peer": true, "engines": { "node": ">= 18" } diff --git a/src/build/emitter.ts b/src/build/emitter.ts index 31e43749f..fc60171ba 100644 --- a/src/build/emitter.ts +++ b/src/build/emitter.ts @@ -467,6 +467,9 @@ export function emitWebIdl( subtypeString = obj.allowShared ? "ArrayBufferLike" : "ArrayBuffer"; } + if (type === "never") { + return "never"; + } return type === "Array" && subtypeString ? makeArrayType(subtypeString, obj) : `${type}${subtypeString ? `<${subtypeString}>` : ""}`; From 5c3af16e5e926af4413e48296c37f47fb11ce2a3 Mon Sep 17 00:00:00 2001 From: Bashamega Date: Sat, 5 Sep 2026 12:48:56 +0300 Subject: [PATCH 2/3] Update @mdn/browser-compat-data to version 8.0.2 --- baselines/audioworklet.generated.d.ts | 6 - baselines/dom.generated.d.ts | 188 ++---------------- baselines/serviceworker.generated.d.ts | 132 +----------- baselines/sharedworker.generated.d.ts | 81 +------- baselines/ts5.5/audioworklet.generated.d.ts | 6 - baselines/ts5.5/dom.generated.d.ts | 188 ++---------------- baselines/ts5.5/serviceworker.generated.d.ts | 123 +----------- .../serviceworker.iterable.generated.d.ts | 9 - baselines/ts5.5/sharedworker.generated.d.ts | 81 +------- baselines/ts5.5/webworker.generated.d.ts | 123 +----------- .../ts5.5/webworker.iterable.generated.d.ts | 9 - baselines/ts5.6/audioworklet.generated.d.ts | 6 - baselines/ts5.6/dom.generated.d.ts | 188 ++---------------- baselines/ts5.6/serviceworker.generated.d.ts | 123 +----------- .../serviceworker.iterable.generated.d.ts | 9 - baselines/ts5.6/sharedworker.generated.d.ts | 81 +------- baselines/ts5.6/webworker.generated.d.ts | 123 +----------- .../ts5.6/webworker.iterable.generated.d.ts | 9 - baselines/ts5.9/audioworklet.generated.d.ts | 6 - baselines/ts5.9/dom.generated.d.ts | 188 ++---------------- baselines/ts5.9/serviceworker.generated.d.ts | 123 +----------- .../serviceworker.iterable.generated.d.ts | 9 - baselines/ts5.9/sharedworker.generated.d.ts | 81 +------- baselines/ts5.9/webworker.generated.d.ts | 123 +----------- .../ts5.9/webworker.iterable.generated.d.ts | 9 - baselines/webworker.generated.d.ts | 132 +----------- package-lock.json | 8 +- package.json | 2 +- src/build/emitter.ts | 3 - 29 files changed, 65 insertions(+), 2104 deletions(-) diff --git a/baselines/audioworklet.generated.d.ts b/baselines/audioworklet.generated.d.ts index 9f4684b6c..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: never): ReadableStream; }; /** diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 72385bd37..74c47ae0d 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -1269,12 +1269,6 @@ interface IDBDatabaseInfo { version?: number; } -interface IDBGetAllOptions { - count?: number; - direction?: IDBCursorDirection; - query?: any; -} - interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -3260,7 +3254,6 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { - sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -4066,8 +4059,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. * @@ -5723,14 +5714,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 +8157,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 +9048,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 +12889,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 +12981,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 +13666,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. * @@ -17376,6 +17335,7 @@ interface GlobalEventHandlers { onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) */ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; @@ -17423,6 +17383,7 @@ interface GlobalEventHandlers { onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */ onerror: OnErrorEventHandler; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) */ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; @@ -17588,28 +17549,24 @@ interface GlobalEventHandlers { /** * The **`HTMLAllCollection`** interface represents a collection of all of the document's elements, accessible by index (like an array) and by the element's id. It is returned by the document.all property. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection) */ interface HTMLAllCollection { /** * The **`HTMLAllCollection.length`** property returns the number of items in this HTMLAllCollection. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/length) */ readonly length: number; /** * The **`item()`** method of the HTMLAllCollection interface returns the element located at the specified offset into the collection, or the element with the specified value for its id or name attribute. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/item) */ item(nameOrIndex?: string): HTMLCollection | Element | null; /** * The **`namedItem()`** method of the HTMLAllCollection interface returns the first Element in the collection whose id or name attribute matches the specified name, or null if no element matches. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/namedItem) */ @@ -17617,7 +17574,6 @@ interface HTMLAllCollection { [index: number]: Element; } -/** @deprecated */ declare var HTMLAllCollection: { prototype: HTMLAllCollection; new(): HTMLAllCollection; @@ -17821,7 +17777,6 @@ declare var HTMLBaseElement: { }; interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap { - "orientationchange": Event; } /** @@ -17839,8 +17794,6 @@ interface HTMLBodyElement extends HTMLElement, WindowEventHandlers { /** @deprecated */ link: string; /** @deprecated */ - onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null; - /** @deprecated */ text: string; /** @deprecated */ vLink: string; @@ -21159,23 +21112,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. * @@ -21881,8 +21817,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; @@ -22854,12 +22788,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. * @@ -23042,12 +22970,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. * @@ -23111,18 +23033,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; @@ -27605,9 +27515,9 @@ declare var PageTransitionEvent: { }; interface PaintTimingMixin { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InteractionContentfulPaint/paintTime) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/paintTime) */ readonly paintTime: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InteractionContentfulPaint/presentationTime) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/presentationTime) */ readonly presentationTime: DOMHighResTimeStamp | null; } @@ -28711,8 +28621,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. * @@ -29808,7 +29716,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; @@ -30054,12 +29961,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 { @@ -31015,12 +30922,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: never): ReadableStream; }; /** @@ -36167,12 +36068,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. * @@ -38016,8 +37911,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. * @@ -38537,21 +38430,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; } @@ -41832,7 +41717,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. * @@ -41845,7 +41729,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -41871,8 +41754,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. * @@ -41967,8 +41848,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: { @@ -41976,23 +41855,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. @@ -42039,21 +41901,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. @@ -42061,8 +41908,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ - 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. * @@ -43265,70 +43110,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; @@ -44226,7 +44061,6 @@ interface HTMLElementTagNameMap { "search": HTMLElement; "section": HTMLElement; "select": HTMLSelectElement; - "selectedcontent": HTMLSelectedContentElement; "slot": HTMLSlotElement; "small": HTMLElement; "source": HTMLSourceElement; @@ -44879,6 +44713,7 @@ declare var onbeforematch: ((this: Window, ev: Event) => any) | null; declare var onbeforetoggle: ((this: Window, ev: ToggleEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */ declare var onblur: ((this: Window, ev: FocusEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ declare var oncancel: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) */ declare var oncanplay: ((this: Window, ev: Event) => any) | null; @@ -44926,6 +44761,7 @@ declare var ondurationchange: ((this: Window, ev: Event) => any) | null; declare var onemptied: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */ declare var onended: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */ declare var onerror: OnErrorEventHandler; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) */ declare var onfocus: ((this: Window, ev: FocusEvent) => any) | null; @@ -45282,7 +45118,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 56b3ae869..190881a28 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: never): 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. * @@ -12387,7 +12309,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -12413,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. * @@ -12509,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: { @@ -12518,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. @@ -12581,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. @@ -12603,8 +12488,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ - 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. * @@ -13733,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; @@ -13835,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"; @@ -14031,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 c859c9fe5..602f794ec 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: never): 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. * @@ -11892,7 +11852,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -11918,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. * @@ -12014,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: { @@ -12023,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. @@ -12086,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. @@ -12108,8 +12031,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ - 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. * @@ -13385,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 e044ffe47..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: never): ReadableStream; }; /** diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 66382edc7..61e3f2db2 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -1266,12 +1266,6 @@ interface IDBDatabaseInfo { version?: number; } -interface IDBGetAllOptions { - count?: number; - direction?: IDBCursorDirection; - query?: any; -} - interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -3257,7 +3251,6 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { - sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -4063,8 +4056,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. * @@ -5720,14 +5711,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 +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. * @@ -9055,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). * @@ -12901,12 +12878,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 +12970,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 +13655,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. * @@ -17362,6 +17321,7 @@ interface GlobalEventHandlers { onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) */ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; @@ -17409,6 +17369,7 @@ interface GlobalEventHandlers { onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */ onerror: OnErrorEventHandler; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) */ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; @@ -17574,28 +17535,24 @@ interface GlobalEventHandlers { /** * The **`HTMLAllCollection`** interface represents a collection of all of the document's elements, accessible by index (like an array) and by the element's id. It is returned by the document.all property. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection) */ interface HTMLAllCollection { /** * The **`HTMLAllCollection.length`** property returns the number of items in this HTMLAllCollection. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/length) */ readonly length: number; /** * The **`item()`** method of the HTMLAllCollection interface returns the element located at the specified offset into the collection, or the element with the specified value for its id or name attribute. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/item) */ item(nameOrIndex?: string): HTMLCollection | Element | null; /** * The **`namedItem()`** method of the HTMLAllCollection interface returns the first Element in the collection whose id or name attribute matches the specified name, or null if no element matches. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/namedItem) */ @@ -17603,7 +17560,6 @@ interface HTMLAllCollection { [index: number]: Element; } -/** @deprecated */ declare var HTMLAllCollection: { prototype: HTMLAllCollection; new(): HTMLAllCollection; @@ -17805,7 +17761,6 @@ declare var HTMLBaseElement: { }; interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap { - "orientationchange": Event; } /** @@ -17823,8 +17778,6 @@ interface HTMLBodyElement extends HTMLElement, WindowEventHandlers { /** @deprecated */ link: string; /** @deprecated */ - onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null; - /** @deprecated */ text: string; /** @deprecated */ vLink: string; @@ -21136,23 +21089,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. * @@ -21857,8 +21793,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; @@ -22830,12 +22764,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. * @@ -23018,12 +22946,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. * @@ -23087,18 +23009,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; @@ -27581,9 +27491,9 @@ declare var PageTransitionEvent: { }; interface PaintTimingMixin { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InteractionContentfulPaint/paintTime) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/paintTime) */ readonly paintTime: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InteractionContentfulPaint/presentationTime) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/presentationTime) */ readonly presentationTime: DOMHighResTimeStamp | null; } @@ -28687,8 +28597,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. * @@ -29784,7 +29692,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; @@ -30030,12 +29937,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 { @@ -30991,12 +30898,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: never): ReadableStream; }; /** @@ -36142,12 +36043,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. * @@ -37990,8 +37885,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. * @@ -38511,21 +38404,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; } @@ -41806,7 +41691,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. * @@ -41819,7 +41703,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -41845,8 +41728,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. * @@ -41941,8 +41822,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: { @@ -41950,23 +41829,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. @@ -42013,21 +41875,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. @@ -42035,8 +41882,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ - 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. * @@ -43239,70 +43084,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; @@ -44200,7 +44035,6 @@ interface HTMLElementTagNameMap { "search": HTMLElement; "section": HTMLElement; "select": HTMLSelectElement; - "selectedcontent": HTMLSelectedContentElement; "slot": HTMLSlotElement; "small": HTMLElement; "source": HTMLSourceElement; @@ -44853,6 +44687,7 @@ declare var onbeforematch: ((this: Window, ev: Event) => any) | null; declare var onbeforetoggle: ((this: Window, ev: ToggleEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */ declare var onblur: ((this: Window, ev: FocusEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ declare var oncancel: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) */ declare var oncanplay: ((this: Window, ev: Event) => any) | null; @@ -44900,6 +44735,7 @@ declare var ondurationchange: ((this: Window, ev: Event) => any) | null; declare var onemptied: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */ declare var onended: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */ declare var onerror: OnErrorEventHandler; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) */ declare var onfocus: ((this: Window, ev: FocusEvent) => any) | null; @@ -45256,7 +45092,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 69efb44df..afc9c9702 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: never): 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. * @@ -12384,7 +12306,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -12410,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. * @@ -12506,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: { @@ -12515,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. @@ -12578,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. @@ -12600,8 +12485,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ - 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. * @@ -13730,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; @@ -13832,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 728cd1cf2..272a4fc47 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: never): 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. * @@ -11889,7 +11849,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -11915,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. * @@ -12011,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: { @@ -12020,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. @@ -12083,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. @@ -12105,8 +12028,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ - 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. * @@ -13382,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 3ebd99dcd..e74ca3fe4 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: never): 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. * @@ -13968,7 +13890,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -13994,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. * @@ -14090,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: { @@ -14099,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. @@ -14162,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. @@ -14184,8 +14069,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ - 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. * @@ -15545,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; @@ -15661,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 e044ffe47..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: never): ReadableStream; }; /** diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 641e1fdd2..ec099f4f8 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -1266,12 +1266,6 @@ interface IDBDatabaseInfo { version?: number; } -interface IDBGetAllOptions { - count?: number; - direction?: IDBCursorDirection; - query?: any; -} - interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -3257,7 +3251,6 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { - sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -4063,8 +4056,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. * @@ -5720,14 +5711,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 +8154,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 +9045,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 +12886,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 +12978,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 +13663,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. * @@ -17373,6 +17332,7 @@ interface GlobalEventHandlers { onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) */ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; @@ -17420,6 +17380,7 @@ interface GlobalEventHandlers { onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */ onerror: OnErrorEventHandler; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) */ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; @@ -17585,28 +17546,24 @@ interface GlobalEventHandlers { /** * The **`HTMLAllCollection`** interface represents a collection of all of the document's elements, accessible by index (like an array) and by the element's id. It is returned by the document.all property. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection) */ interface HTMLAllCollection { /** * The **`HTMLAllCollection.length`** property returns the number of items in this HTMLAllCollection. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/length) */ readonly length: number; /** * The **`item()`** method of the HTMLAllCollection interface returns the element located at the specified offset into the collection, or the element with the specified value for its id or name attribute. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/item) */ item(nameOrIndex?: string): HTMLCollection | Element | null; /** * The **`namedItem()`** method of the HTMLAllCollection interface returns the first Element in the collection whose id or name attribute matches the specified name, or null if no element matches. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/namedItem) */ @@ -17614,7 +17571,6 @@ interface HTMLAllCollection { [index: number]: Element; } -/** @deprecated */ declare var HTMLAllCollection: { prototype: HTMLAllCollection; new(): HTMLAllCollection; @@ -17818,7 +17774,6 @@ declare var HTMLBaseElement: { }; interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap { - "orientationchange": Event; } /** @@ -17836,8 +17791,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 +21109,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 +21814,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 +22785,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 +22967,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 +23030,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; @@ -27602,9 +27512,9 @@ declare var PageTransitionEvent: { }; interface PaintTimingMixin { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InteractionContentfulPaint/paintTime) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/paintTime) */ readonly paintTime: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InteractionContentfulPaint/presentationTime) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/presentationTime) */ readonly presentationTime: DOMHighResTimeStamp | null; } @@ -28708,8 +28618,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 +29713,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 +29958,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 +30919,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: never): ReadableStream; }; /** @@ -36164,12 +36065,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 +37908,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 +38427,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 +41714,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. * @@ -41842,7 +41726,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -41868,8 +41751,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. * @@ -41964,8 +41845,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: { @@ -41973,23 +41852,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. @@ -42036,21 +41898,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. @@ -42058,8 +41905,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ - 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. * @@ -43262,70 +43107,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; @@ -44223,7 +44058,6 @@ interface HTMLElementTagNameMap { "search": HTMLElement; "section": HTMLElement; "select": HTMLSelectElement; - "selectedcontent": HTMLSelectedContentElement; "slot": HTMLSlotElement; "small": HTMLElement; "source": HTMLSourceElement; @@ -44876,6 +44710,7 @@ declare var onbeforematch: ((this: Window, ev: Event) => any) | null; declare var onbeforetoggle: ((this: Window, ev: ToggleEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */ declare var onblur: ((this: Window, ev: FocusEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ declare var oncancel: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) */ declare var oncanplay: ((this: Window, ev: Event) => any) | null; @@ -44923,6 +44758,7 @@ declare var ondurationchange: ((this: Window, ev: Event) => any) | null; declare var onemptied: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */ declare var onended: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */ declare var onerror: OnErrorEventHandler; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) */ declare var onfocus: ((this: Window, ev: FocusEvent) => any) | null; @@ -45279,7 +45115,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 69efb44df..afc9c9702 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: never): 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. * @@ -12384,7 +12306,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -12410,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. * @@ -12506,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: { @@ -12515,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. @@ -12578,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. @@ -12600,8 +12485,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ - 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. * @@ -13730,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; @@ -13832,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 728cd1cf2..272a4fc47 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: never): 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. * @@ -11889,7 +11849,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -11915,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. * @@ -12011,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: { @@ -12020,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. @@ -12083,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. @@ -12105,8 +12028,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ - 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. * @@ -13382,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 3ebd99dcd..e74ca3fe4 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: never): 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. * @@ -13968,7 +13890,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -13994,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. * @@ -14090,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: { @@ -14099,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. @@ -14162,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. @@ -14184,8 +14069,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ - 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. * @@ -15545,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; @@ -15661,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 33aca5022..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: never): ReadableStream; }; /** diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index 92ce22815..c7be83a7a 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -1266,12 +1266,6 @@ interface IDBDatabaseInfo { version?: number; } -interface IDBGetAllOptions { - count?: number; - direction?: IDBCursorDirection; - query?: any; -} - interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -3257,7 +3251,6 @@ interface WebTransportReceiveStreamStats { } interface WebTransportSendOptions { - sendGroup?: WebTransportSendGroup | null; sendOrder?: number; } @@ -4063,8 +4056,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. * @@ -5720,14 +5711,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 +8154,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 +9045,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 +12886,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 +12978,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 +13663,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. * @@ -17373,6 +17332,7 @@ interface GlobalEventHandlers { onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) */ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; @@ -17420,6 +17380,7 @@ interface GlobalEventHandlers { onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */ onerror: OnErrorEventHandler; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) */ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; @@ -17585,28 +17546,24 @@ interface GlobalEventHandlers { /** * The **`HTMLAllCollection`** interface represents a collection of all of the document's elements, accessible by index (like an array) and by the element's id. It is returned by the document.all property. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection) */ interface HTMLAllCollection { /** * The **`HTMLAllCollection.length`** property returns the number of items in this HTMLAllCollection. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/length) */ readonly length: number; /** * The **`item()`** method of the HTMLAllCollection interface returns the element located at the specified offset into the collection, or the element with the specified value for its id or name attribute. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/item) */ item(nameOrIndex?: string): HTMLCollection | Element | null; /** * The **`namedItem()`** method of the HTMLAllCollection interface returns the first Element in the collection whose id or name attribute matches the specified name, or null if no element matches. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/namedItem) */ @@ -17614,7 +17571,6 @@ interface HTMLAllCollection { [index: number]: Element; } -/** @deprecated */ declare var HTMLAllCollection: { prototype: HTMLAllCollection; new(): HTMLAllCollection; @@ -17818,7 +17774,6 @@ declare var HTMLBaseElement: { }; interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap { - "orientationchange": Event; } /** @@ -17836,8 +17791,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 +21109,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 +21814,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 +22785,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 +22967,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 +23030,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; @@ -27602,9 +27512,9 @@ declare var PageTransitionEvent: { }; interface PaintTimingMixin { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InteractionContentfulPaint/paintTime) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/paintTime) */ readonly paintTime: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InteractionContentfulPaint/presentationTime) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/presentationTime) */ readonly presentationTime: DOMHighResTimeStamp | null; } @@ -28708,8 +28618,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 +29713,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 +29958,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 +30919,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: never): ReadableStream; }; /** @@ -36164,12 +36065,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 +37908,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 +38427,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 +41714,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. * @@ -41842,7 +41726,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -41868,8 +41751,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. * @@ -41964,8 +41845,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: { @@ -41973,23 +41852,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. @@ -42036,21 +41898,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. @@ -42058,8 +41905,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ - 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. * @@ -43262,70 +43107,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; @@ -44223,7 +44058,6 @@ interface HTMLElementTagNameMap { "search": HTMLElement; "section": HTMLElement; "select": HTMLSelectElement; - "selectedcontent": HTMLSelectedContentElement; "slot": HTMLSlotElement; "small": HTMLElement; "source": HTMLSourceElement; @@ -44876,6 +44710,7 @@ declare var onbeforematch: ((this: Window, ev: Event) => any) | null; declare var onbeforetoggle: ((this: Window, ev: ToggleEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */ declare var onblur: ((this: Window, ev: FocusEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ declare var oncancel: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) */ declare var oncanplay: ((this: Window, ev: Event) => any) | null; @@ -44923,6 +44758,7 @@ declare var ondurationchange: ((this: Window, ev: Event) => any) | null; declare var onemptied: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */ declare var onended: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */ declare var onerror: OnErrorEventHandler; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) */ declare var onfocus: ((this: Window, ev: FocusEvent) => any) | null; @@ -45279,7 +45115,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 3e48e8415..377ca282f 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: never): 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. * @@ -12384,7 +12306,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -12410,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. * @@ -12506,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: { @@ -12515,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. @@ -12578,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. @@ -12600,8 +12485,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ - 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. * @@ -13730,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; @@ -13832,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 9795992fe..ef5f13c4b 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: never): 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. * @@ -11889,7 +11849,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -11915,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. * @@ -12011,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: { @@ -12020,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. @@ -12083,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. @@ -12105,8 +12028,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ - 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. * @@ -13382,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 25755c622..69f511463 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: never): 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. * @@ -13968,7 +13890,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -13994,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. * @@ -14090,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: { @@ -14099,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. @@ -14162,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. @@ -14184,8 +14069,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ - 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. * @@ -15545,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; @@ -15661,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 1d0d2aac0..45364e7b8 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: never): 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. * @@ -13971,7 +13893,6 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/protocol) */ readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. @@ -13997,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. * @@ -14093,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: { @@ -14102,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. @@ -14165,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. @@ -14187,8 +14072,6 @@ declare var WebTransportSendGroup: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) */ interface WebTransportSendStream extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendGroup) */ - 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. * @@ -15548,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; @@ -15664,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"; @@ -15870,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 dc8414075..db00f737a 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.1.0", + "@mdn/browser-compat-data": "^8.0.2", "@octokit/rest": "^22.0.0", "@types/node": "^25.0.3", "@types/prettier": "^3.0.0", @@ -316,9 +316,9 @@ } }, "node_modules/@mdn/browser-compat-data": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-8.1.0.tgz", - "integrity": "sha512-BNlUjp+9O6gtIHPVZEGFb5rgtuWW8weR+mSKfLOevxbfoZv5DRe3N4ZTEpXiIm5wfR7+kqHu8malCCgP6USrlg==", + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-8.0.2.tgz", + "integrity": "sha512-bT8u6Ll/vuV8qC9tn8cqvxoAtBpKcCwhKMW51qJRK9+G3JUtAx3lc1wjij4GJzGCfqA0keRbJUFetCgwwYaskA==", "dev": true, "license": "CC0-1.0", "peer": true diff --git a/package.json b/package.json index de5938782..5bcc20f50 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.2", "@octokit/rest": "^22.0.0", "@types/node": "^25.0.3", "@types/prettier": "^3.0.0", diff --git a/src/build/emitter.ts b/src/build/emitter.ts index fc60171ba..31e43749f 100644 --- a/src/build/emitter.ts +++ b/src/build/emitter.ts @@ -467,9 +467,6 @@ export function emitWebIdl( subtypeString = obj.allowShared ? "ArrayBufferLike" : "ArrayBuffer"; } - if (type === "never") { - return "never"; - } return type === "Array" && subtypeString ? makeArrayType(subtypeString, obj) : `${type}${subtypeString ? `<${subtypeString}>` : ""}`; From fcddf4142e907ef837974d720149e5482f9d2ccb Mon Sep 17 00:00:00 2001 From: Bashamega Date: Sat, 5 Sep 2026 12:55:42 +0300 Subject: [PATCH 3/3] Restore package.json from main --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5bcc20f50..de5938782 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "type": "module", "devDependencies": { "@eslint/js": "^10", - "@mdn/browser-compat-data": "^8.0.2", + "@mdn/browser-compat-data": "^8.0.1", "@octokit/rest": "^22.0.0", "@types/node": "^25.0.3", "@types/prettier": "^3.0.0",