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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions baselines/audioworklet.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,12 @@ declare var ReadableStream: {
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array<ArrayBuffer>>;
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
/**
* 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<any>): ReadableStream;
};

/**
Expand Down
61 changes: 61 additions & 0 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1269,6 +1269,12 @@ interface IDBDatabaseInfo {
version?: number;
}

interface IDBGetAllOptions {
count?: number;
direction?: IDBCursorDirection;
query?: any;
}

interface IDBIndexParameters {
multiEntry?: boolean;
unique?: boolean;
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -21112,6 +21120,23 @@ declare var HTMLSelectElement: {
new(): HTMLSelectElement;
};

/**
* The **`HTMLSelectedContentElement`** interface represents a <selectedcontent> element in the DOM.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectedContentElement)
*/
interface HTMLSelectedContentElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectedContentElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(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 <slot> element.
*
Expand Down Expand Up @@ -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<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
Expand Down Expand Up @@ -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<IDBValidKey[]>;
/**
* 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.
*
Expand Down Expand Up @@ -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<IDBValidKey[]>;
/**
* 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.
*
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -30922,6 +30974,12 @@ declare var ReadableStream: {
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array<ArrayBuffer>>;
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
/**
* 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<any>): ReadableStream;
};

/**
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -44069,6 +44129,7 @@ interface HTMLElementTagNameMap {
"search": HTMLElement;
"section": HTMLElement;
"select": HTMLSelectElement;
"selectedcontent": HTMLSelectedContentElement;
"slot": HTMLSlotElement;
"small": HTMLElement;
"source": HTMLSourceElement;
Expand Down
88 changes: 88 additions & 0 deletions baselines/serviceworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,12 @@ interface IDBDatabaseInfo {
version?: number;
}

interface IDBGetAllOptions {
count?: number;
direction?: IDBCursorDirection;
query?: any;
}

interface IDBIndexParameters {
multiEntry?: boolean;
unique?: boolean;
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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<IDBValidKey[]>;
/**
* 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.
*
Expand Down Expand Up @@ -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<IDBValidKey[]>;
/**
* 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.
*
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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<void>;
}

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.
*
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -8213,6 +8282,12 @@ declare var ReadableStream: {
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array<ArrayBuffer>>;
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
/**
* 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<any>): ReadableStream;
};

/**
Expand Down Expand Up @@ -13616,9 +13691,11 @@ type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableSt
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | 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<ArrayBufferLike> | GLuint[];
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
Expand Down Expand Up @@ -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";
Expand Down Expand Up @@ -13910,6 +13989,15 @@ interface IDBObjectStore {
createIndex(name: string, keyPath: string | Iterable<string>, 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<RouterRule>): Promise<void>;
}

interface MessageEvent<T = any> {
/** @deprecated */
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
Expand Down
Loading
Loading