diff --git a/baselines/audioworklet.generated.d.ts b/baselines/audioworklet.generated.d.ts index dc7ea4402..98e05933e 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: AsyncIterable): ReadableStream; }; /** diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index f3b5e3c02..fac8042fd 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -1269,6 +1269,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -4059,6 +4065,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. * @@ -21112,6 +21120,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. * @@ -21817,6 +21842,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; @@ -22788,6 +22815,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. * @@ -22970,6 +23003,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. * @@ -23033,6 +23072,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -28621,6 +28671,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. * @@ -30922,6 +30974,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: AsyncIterable): ReadableStream; }; /** @@ -37911,6 +37969,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. * @@ -44069,6 +44129,7 @@ interface HTMLElementTagNameMap { "search": HTMLElement; "section": HTMLElement; "select": HTMLSelectElement; + "selectedcontent": HTMLSelectedContentElement; "slot": HTMLSlotElement; "small": HTMLElement; "source": HTMLSourceElement; diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index fd87652cd..da0cd79c6 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; } @@ -6165,6 +6190,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 +6378,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 +6447,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +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 +6709,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 +7824,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 +8282,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: AsyncIterable): ReadableStream; }; /** @@ -13616,9 +13691,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 URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -13716,6 +13793,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 +13989,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 7aa724ad6..430626142 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; @@ -5848,6 +5854,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 +6042,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 +6111,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +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 +7444,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 +7827,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: AsyncIterable): ReadableStream; }; /** diff --git a/baselines/ts5.5/audioworklet.generated.d.ts b/baselines/ts5.5/audioworklet.generated.d.ts index b60857baa..9286008c9 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: Iterable): ReadableStream; }; /** diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index aef6f6750..47fe295ca 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -1266,6 +1266,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -4056,6 +4062,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. * @@ -21089,6 +21097,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. * @@ -21793,6 +21818,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; @@ -22764,6 +22791,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. * @@ -22946,6 +22979,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. * @@ -23009,6 +23048,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -28597,6 +28647,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. * @@ -30898,6 +30950,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: Iterable): ReadableStream; }; /** @@ -37885,6 +37943,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. * @@ -44043,6 +44103,7 @@ interface HTMLElementTagNameMap { "search": HTMLElement; "section": HTMLElement; "select": HTMLSelectElement; + "selectedcontent": HTMLSelectedContentElement; "slot": HTMLSlotElement; "small": HTMLElement; "source": HTMLSourceElement; diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index e7aa90dc7..c873291ed 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; } @@ -6162,6 +6187,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 +6375,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 +6444,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +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 +6706,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 +7821,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 +8279,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: Iterable): ReadableStream; }; /** @@ -13613,9 +13688,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 URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -13713,6 +13790,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 ad5d84c20..7e3bc6c5d 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; @@ -5845,6 +5851,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 +6039,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 +6108,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +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 +7441,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 +7824,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: Iterable): ReadableStream; }; /** diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index f06292a87..23e201e1e 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; } @@ -6893,6 +6918,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 +7106,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 +7175,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +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 +7576,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 +8723,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 +9430,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: Iterable): ReadableStream; }; /** @@ -15428,9 +15503,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 URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -15542,6 +15619,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..9286008c9 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: Iterable): ReadableStream; }; /** diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 3138a8b64..94cdc5299 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -1266,6 +1266,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -4056,6 +4062,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. * @@ -21109,6 +21117,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. * @@ -21814,6 +21839,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; @@ -22785,6 +22812,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. * @@ -22967,6 +23000,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. * @@ -23030,6 +23069,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -28618,6 +28668,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. * @@ -30919,6 +30971,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: Iterable): ReadableStream; }; /** @@ -37908,6 +37966,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. * @@ -44066,6 +44126,7 @@ interface HTMLElementTagNameMap { "search": HTMLElement; "section": HTMLElement; "select": HTMLSelectElement; + "selectedcontent": HTMLSelectedContentElement; "slot": HTMLSlotElement; "small": HTMLElement; "source": HTMLSourceElement; diff --git a/baselines/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index e7aa90dc7..c873291ed 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; } @@ -6162,6 +6187,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 +6375,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 +6444,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +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 +6706,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 +7821,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 +8279,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: Iterable): ReadableStream; }; /** @@ -13613,9 +13688,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 URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -13713,6 +13790,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 ad5d84c20..7e3bc6c5d 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; @@ -5845,6 +5851,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 +6039,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 +6108,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +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 +7441,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 +7824,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: Iterable): ReadableStream; }; /** diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index f06292a87..23e201e1e 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; } @@ -6893,6 +6918,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 +7106,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 +7175,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +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 +7576,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 +8723,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 +9430,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: Iterable): ReadableStream; }; /** @@ -15428,9 +15503,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 URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -15542,6 +15619,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..dcc41c3d8 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: AsyncIterable): ReadableStream; }; /** diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index 2c94c0304..bd9fbf6b0 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -1266,6 +1266,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -4056,6 +4062,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. * @@ -21109,6 +21117,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. * @@ -21814,6 +21839,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; @@ -22785,6 +22812,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. * @@ -22967,6 +23000,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. * @@ -23030,6 +23069,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -28618,6 +28668,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. * @@ -30919,6 +30971,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: AsyncIterable): ReadableStream; }; /** @@ -37908,6 +37966,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. * @@ -44066,6 +44126,7 @@ interface HTMLElementTagNameMap { "search": HTMLElement; "section": HTMLElement; "select": HTMLSelectElement; + "selectedcontent": HTMLSelectedContentElement; "slot": HTMLSlotElement; "small": HTMLElement; "source": HTMLSourceElement; diff --git a/baselines/ts5.9/serviceworker.generated.d.ts b/baselines/ts5.9/serviceworker.generated.d.ts index 42cc0a76c..f259c72f9 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; } @@ -6162,6 +6187,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 +6375,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 +6444,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +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 +6706,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 +7821,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 +8279,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: AsyncIterable): ReadableStream; }; /** @@ -13613,9 +13688,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 URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -13713,6 +13790,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 d1ba1c70d..32246ec64 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; @@ -5845,6 +5851,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 +6039,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 +6108,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +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 +7441,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 +7824,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: AsyncIterable): ReadableStream; }; /** diff --git a/baselines/ts5.9/webworker.generated.d.ts b/baselines/ts5.9/webworker.generated.d.ts index b97d90878..b5c9fdac5 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; } @@ -6893,6 +6918,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 +7106,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 +7175,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +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 +7576,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 +8723,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 +9430,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: AsyncIterable): ReadableStream; }; /** @@ -15428,9 +15503,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 URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -15542,6 +15619,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 07959870c..fb10975c2 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; } @@ -6896,6 +6921,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 +7109,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 +7178,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +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 +7579,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 +8726,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 +9433,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: AsyncIterable): ReadableStream; }; /** @@ -15431,9 +15506,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 URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -15545,6 +15622,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 +15828,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 69dcd3c8b..e8e4c2c5c 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.4", + "@mdn/browser-compat-data": "^8.0.5", "@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.0.4", - "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-8.0.4.tgz", - "integrity": "sha512-up6DsNsaPt3jq5d2TGx4UOXIqBKU0D86dxWwcVmmOOEYqP1rFaV1XcAcwHxMvb6bbtMfY5JpjUCszzy/aVc4yA==", + "version": "8.0.5", + "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-8.0.5.tgz", + "integrity": "sha512-gzTjryoDygkG3aK/xFAwut7QPBhmTy6RDUep5HqyqxEQlvNWmcoVTkmMeb0LQFhZnISu0nmPK767eKSjrjSXUQ==", "dev": true, "license": "CC0-1.0", "peer": true diff --git a/src/build/emitter.ts b/src/build/emitter.ts index 31e43749f..1867eff7a 100644 --- a/src/build/emitter.ts +++ b/src/build/emitter.ts @@ -409,14 +409,10 @@ export function emitWebIdl( function convertBaseType() { // Support async_sequence (see https://github.com/whatwg/streams/pull/1372) if (obj.type === "async_sequence") { - // AsyncIterable requires separate asynciterable.d.ts until TS 6.0. - // To make it correct, we need to defer any functions using async_sequence to the asynciterable variant. - // For now, skip generation and warn. - console.warn( - "Skipping generation for a function or property with async_sequence type: " + - JSON.stringify(obj), - ); - return "never"; // Use 'never' to signal omission in type generation + if (compilerBehavior.treatAsyncSequence) { + return "AsyncIterable"; + } + return "Iterable"; } if (obj.type === "sequence" && !forReturn && iterator !== "") { return "Iterable";