From 68effcb86322890db22794ece8c0cb851131681a Mon Sep 17 00:00:00 2001 From: uhyo Date: Sat, 8 Mar 2025 16:48:50 +0900 Subject: [PATCH 1/5] chore: upgrade TypeScript to 5.8.2 --- TypeScript | 2 +- package-lock.json | 14 +++++++------- package.json | 2 +- tests/package-lock.json | 14 +++++++------- tests/package.json | 6 +++--- 5 files changed, 19 insertions(+), 19 deletions(-) diff --git a/TypeScript b/TypeScript index d701d90..beb69e4 160000 --- a/TypeScript +++ b/TypeScript @@ -1 +1 @@ -Subproject commit d701d908d534e68cfab24b6df15539014ac348a3 +Subproject commit beb69e4cdd61b1a0fd9ae21ae58bd4bd409d7217 diff --git a/package-lock.json b/package-lock.json index 09c019c..aad4930 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "diff": "^5.0.0", "json5": "^2.2.3", "prettier": "^3.2.5", - "typescript": "^5.7.2" + "typescript": "^5.8.2" } }, "node_modules/@jsdevtools/ez-spawn": { @@ -241,9 +241,9 @@ } }, "node_modules/typescript": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz", - "integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==", + "version": "5.8.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz", + "integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -441,9 +441,9 @@ "dev": true }, "typescript": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz", - "integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==", + "version": "5.8.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz", + "integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==", "dev": true }, "typical": { diff --git a/package.json b/package.json index 0572428..74f6270 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "diff": "^5.0.0", "json5": "^2.2.3", "prettier": "^3.2.5", - "typescript": "^5.7.2" + "typescript": "^5.8.2" }, "scripts": { "build:tsc": "tsc", diff --git a/tests/package-lock.json b/tests/package-lock.json index 89d7d8a..6e72198 100644 --- a/tests/package-lock.json +++ b/tests/package-lock.json @@ -29,7 +29,7 @@ "devDependencies": { "@types/node": "^16.9.6", "tsd": "^0.31.2", - "typescript": "^5.7.2" + "typescript": "^5.8.2" } }, "../dist-package/decorators": { @@ -319,9 +319,9 @@ "dev": true }, "node_modules/@tsd/typescript": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/@tsd/typescript/-/typescript-5.7.2.tgz", - "integrity": "sha512-Xuhtk1h4T35XXJWWKmufMV1UMK1C5aMA+3AYDgkQgiaR4lLS+7lNXOEC0lDancspFO9SOZzASpfOvUoATm2cPA==", + "version": "5.8.2", + "resolved": "https://registry.npmjs.org/@tsd/typescript/-/typescript-5.8.2.tgz", + "integrity": "sha512-oRzaozYXHCU4oJaxFUd7tNUNZmqqpPn6ryFSzW5Ub/HuPhMBk4MopIyQomZ0VTJ0Ype+J3UXbBZ96SWsKf6x5A==", "dev": true, "engines": { "node": ">=14.17" @@ -1596,9 +1596,9 @@ } }, "node_modules/typescript": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz", - "integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==", + "version": "5.8.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz", + "integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==", "dev": true, "bin": { "tsc": "bin/tsc", diff --git a/tests/package.json b/tests/package.json index 9278fa5..b4fdb67 100644 --- a/tests/package.json +++ b/tests/package.json @@ -15,7 +15,7 @@ "devDependencies": { "@types/node": "^16.9.6", "tsd": "^0.31.2", - "typescript": "^5.7.2" + "typescript": "^5.8.2" }, "dependencies": { "@typescript/lib-decorators": "file:../dist-package/decorators", @@ -37,6 +37,6 @@ "@typescript/lib-es2024": "file:../dist-package/es2024" }, "overrides": { - "@tsd/typescript": "~5.7.2" + "@tsd/typescript": "~5.8.2" } -} +} \ No newline at end of file From e5730528c3e3d9d3233ad586aca863db5ceadeb5 Mon Sep 17 00:00:00 2001 From: uhyo Date: Sat, 8 Mar 2025 17:04:39 +0900 Subject: [PATCH 2/5] chore: commit changes from TypeScript 5.8 --- docs/diff/dom.generated.d.ts.md | 35 +- docs/diff/es2015.iterable.d.ts.md | 119 ++-- docs/diff/es2020.bigint.d.ts.md | 96 ++- docs/diff/es5.d.ts.md | 268 ++++--- generated/lib.dom.d.ts | 960 ++++++++++++++++++++++---- generated/lib.dom.iterable.d.ts | 15 +- generated/lib.es2015.iterable.d.ts | 114 +-- generated/lib.es2020.bigint.d.ts | 50 +- generated/lib.es2023.array.d.ts | 48 +- generated/lib.es5.d.ts | 147 ++-- generated/lib.esnext.d.ts | 2 + generated/lib.esnext.float16.d.ts | 498 +++++++++++++ generated/lib.esnext.iterator.d.ts | 2 +- generated/lib.esnext.promise.d.ts | 20 + generated/lib.webworker.d.ts | 369 ++++++++-- generated/lib.webworker.iterable.d.ts | 13 +- 16 files changed, 2178 insertions(+), 578 deletions(-) create mode 100644 generated/lib.esnext.float16.d.ts create mode 100644 generated/lib.esnext.promise.d.ts diff --git a/docs/diff/dom.generated.d.ts.md b/docs/diff/dom.generated.d.ts.md index e761a55..cd0d11b 100644 --- a/docs/diff/dom.generated.d.ts.md +++ b/docs/diff/dom.generated.d.ts.md @@ -5,7 +5,7 @@ Index: dom.generated.d.ts =================================================================== --- dom.generated.d.ts +++ dom.generated.d.ts -@@ -3293,11 +3293,16 @@ +@@ -3356,11 +3356,16 @@ }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParamMap) */ @@ -25,7 +25,7 @@ Index: dom.generated.d.ts } declare var AudioParamMap: { -@@ -3726,9 +3731,9 @@ +@@ -3789,9 +3794,9 @@ bytes(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */ formData(): Promise; @@ -36,7 +36,7 @@ Index: dom.generated.d.ts text(): Promise; } -@@ -6927,11 +6932,11 @@ +@@ -7044,11 +7049,11 @@ }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomStateSet) */ @@ -51,7 +51,7 @@ Index: dom.generated.d.ts } declare var CustomStateSet: { -@@ -8375,9 +8380,9 @@ +@@ -8530,9 +8535,9 @@ /** * Returns a reference to the first object with the specified value of the ID attribute. * @param elementId String that specifies the ID value. @@ -62,7 +62,7 @@ Index: dom.generated.d.ts * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByClassName) -@@ -8563,9 +8568,9 @@ +@@ -8719,9 +8724,9 @@ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentFragment) */ interface DocumentFragment extends Node, NonElementParentNode, ParentNode { @@ -73,7 +73,7 @@ Index: dom.generated.d.ts declare var DocumentFragment: { prototype: DocumentFragment; -@@ -9378,11 +9383,11 @@ +@@ -9542,11 +9547,11 @@ }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventCounts) */ @@ -88,7 +88,7 @@ Index: dom.generated.d.ts } declare var EventCounts: { -@@ -9914,11 +9919,16 @@ +@@ -10078,11 +10083,16 @@ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) */ check(font: string, text?: string): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load) */ @@ -108,7 +108,7 @@ Index: dom.generated.d.ts addEventListener( type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, -@@ -16210,15 +16220,16 @@ +@@ -16529,15 +16539,16 @@ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/priority) */ priority: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/type) */ @@ -128,7 +128,7 @@ Index: dom.generated.d.ts } declare var Highlight: { -@@ -16227,15 +16238,16 @@ +@@ -16546,15 +16557,16 @@ }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry) */ @@ -148,7 +148,7 @@ Index: dom.generated.d.ts } declare var HighlightRegistry: { -@@ -17663,11 +17675,16 @@ +@@ -18046,11 +18058,16 @@ * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInputMap) */ @@ -168,7 +168,7 @@ Index: dom.generated.d.ts } declare var MIDIInputMap: { -@@ -17730,11 +17747,16 @@ +@@ -18113,11 +18130,16 @@ * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutputMap) */ @@ -188,7 +188,7 @@ Index: dom.generated.d.ts } declare var MIDIOutputMap: { -@@ -19528,9 +19550,9 @@ +@@ -20007,9 +20029,9 @@ new (): NodeList; }; @@ -199,7 +199,7 @@ Index: dom.generated.d.ts * Performs the specified action for each node in an list. * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list. * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. -@@ -22073,11 +22095,11 @@ +@@ -22578,11 +22600,11 @@ }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCStatsReport) */ @@ -214,14 +214,15 @@ Index: dom.generated.d.ts } declare var RTCStatsReport: { -@@ -34926,13 +34948,16 @@ +@@ -35597,13 +35619,16 @@ handler: TimerHandler, timeout?: number, ...arguments: any[] ): number; -+ - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */ +-/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) */ -declare function structuredClone( ++ ++/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */ +declare function structuredClone< + const T extends BetterTypeScriptLibInternals.StructuredClone.Constraint, +>( @@ -233,7 +234,7 @@ Index: dom.generated.d.ts declare var sessionStorage: Storage; declare function addEventListener( type: K, -@@ -35607,4 +35632,125 @@ +@@ -36287,4 +36312,125 @@ | "blob" | "document" | "json" diff --git a/docs/diff/es2015.iterable.d.ts.md b/docs/diff/es2015.iterable.d.ts.md index d57b79d..e857839 100644 --- a/docs/diff/es2015.iterable.d.ts.md +++ b/docs/diff/es2015.iterable.d.ts.md @@ -70,7 +70,7 @@ Index: es2015.iterable.d.ts } interface WeakMap {} -@@ -244,17 +242,17 @@ +@@ -246,17 +244,17 @@ * resolve, or rejected when any Promise is rejected. * @param values An iterable of Promises. * @returns A new Promise. @@ -90,7 +90,7 @@ Index: es2015.iterable.d.ts interface StringIterator extends IteratorObject { -@@ -283,26 +281,23 @@ +@@ -288,25 +286,23 @@ } interface Int8ArrayConstructor { @@ -98,24 +98,23 @@ Index: es2015.iterable.d.ts - /** - * Creates an array from an array-like or iterable object. -- * @param arrayLike An array-like or iterable object to convert to an array. -- * @param mapfn A mapping function to call on every element of the array. -- * @param thisArg Value of 'this' used to invoke the mapfn. +- * @param elements An iterable object to convert to an array. + * Creates an array from an iterable object. + * @param iterable An iterable object to convert to an array. */ -- from(arrayLike: Iterable): Int8Array; +- from(elements: Iterable): Int8Array; +- + from(iterable: Iterable | ArrayLike): Int8Array; /** - * Creates an array from an array-like or iterable object. -- * @param arrayLike An array-like or iterable object to convert to an array. +- * @param elements An iterable object to convert to an array. + * Creates an array from an iterable object. + * @param iterable An iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from( -- arrayLike: Iterable, +- elements: Iterable, - mapfn?: (v: T, k: number) => number, - thisArg?: any, + from( @@ -126,7 +125,7 @@ Index: es2015.iterable.d.ts } interface Uint8Array { -@@ -322,26 +317,23 @@ +@@ -329,25 +325,23 @@ } interface Uint8ArrayConstructor { @@ -134,24 +133,23 @@ Index: es2015.iterable.d.ts - /** - * Creates an array from an array-like or iterable object. -- * @param arrayLike An array-like or iterable object to convert to an array. -- * @param mapfn A mapping function to call on every element of the array. -- * @param thisArg Value of 'this' used to invoke the mapfn. +- * @param elements An iterable object to convert to an array. + * Creates an array from an iterable object. + * @param iterable An iterable object to convert to an array. */ -- from(arrayLike: Iterable): Uint8Array; +- from(elements: Iterable): Uint8Array; +- + from(iterable: Iterable | ArrayLike): Uint8Array; /** - * Creates an array from an array-like or iterable object. -- * @param arrayLike An array-like or iterable object to convert to an array. +- * @param elements An iterable object to convert to an array. + * Creates an array from an iterable object. + * @param iterable An iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from( -- arrayLike: Iterable, +- elements: Iterable, - mapfn?: (v: T, k: number) => number, - thisArg?: any, + from( @@ -162,7 +160,7 @@ Index: es2015.iterable.d.ts } interface Uint8ClampedArray { -@@ -363,26 +355,25 @@ +@@ -370,25 +364,25 @@ } interface Uint8ClampedArrayConstructor { @@ -170,26 +168,25 @@ Index: es2015.iterable.d.ts - /** - * Creates an array from an array-like or iterable object. -- * @param arrayLike An array-like or iterable object to convert to an array. -- * @param mapfn A mapping function to call on every element of the array. -- * @param thisArg Value of 'this' used to invoke the mapfn. +- * @param elements An iterable object to convert to an array. + * Creates an array from an iterable object. + * @param iterable An iterable object to convert to an array. */ -- from(arrayLike: Iterable): Uint8ClampedArray; +- from(elements: Iterable): Uint8ClampedArray; +- + from( + iterable: Iterable | ArrayLike, + ): Uint8ClampedArray; /** - * Creates an array from an array-like or iterable object. -- * @param arrayLike An array-like or iterable object to convert to an array. +- * @param elements An iterable object to convert to an array. + * Creates an array from an iterable object. + * @param iterable An iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from( -- arrayLike: Iterable, +- elements: Iterable, - mapfn?: (v: T, k: number) => number, - thisArg?: any, + from( @@ -200,7 +197,7 @@ Index: es2015.iterable.d.ts } interface Int16Array { -@@ -404,26 +395,23 @@ +@@ -410,25 +404,23 @@ } interface Int16ArrayConstructor { @@ -208,24 +205,23 @@ Index: es2015.iterable.d.ts - /** - * Creates an array from an array-like or iterable object. -- * @param arrayLike An array-like or iterable object to convert to an array. -- * @param mapfn A mapping function to call on every element of the array. -- * @param thisArg Value of 'this' used to invoke the mapfn. +- * @param elements An iterable object to convert to an array. + * Creates an array from an iterable object. + * @param iterable An iterable object to convert to an array. */ -- from(arrayLike: Iterable): Int16Array; +- from(elements: Iterable): Int16Array; +- + from(iterable: Iterable | ArrayLike): Int16Array; /** - * Creates an array from an array-like or iterable object. -- * @param arrayLike An array-like or iterable object to convert to an array. +- * @param elements An iterable object to convert to an array. + * Creates an array from an iterable object. + * @param iterable An iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from( -- arrayLike: Iterable, +- elements: Iterable, - mapfn?: (v: T, k: number) => number, - thisArg?: any, + from( @@ -236,7 +232,7 @@ Index: es2015.iterable.d.ts } interface Uint16Array { -@@ -443,26 +431,25 @@ +@@ -451,25 +443,25 @@ } interface Uint16ArrayConstructor { @@ -244,26 +240,25 @@ Index: es2015.iterable.d.ts - /** - * Creates an array from an array-like or iterable object. -- * @param arrayLike An array-like or iterable object to convert to an array. -- * @param mapfn A mapping function to call on every element of the array. -- * @param thisArg Value of 'this' used to invoke the mapfn. +- * @param elements An iterable object to convert to an array. + * Creates an array from an iterable object. + * @param iterable An iterable object to convert to an array. */ -- from(arrayLike: Iterable): Uint16Array; +- from(elements: Iterable): Uint16Array; +- + from( + iterable: Iterable | ArrayLike, + ): Uint16Array; /** - * Creates an array from an array-like or iterable object. -- * @param arrayLike An array-like or iterable object to convert to an array. +- * @param elements An iterable object to convert to an array. + * Creates an array from an iterable object. + * @param iterable An iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from( -- arrayLike: Iterable, +- elements: Iterable, - mapfn?: (v: T, k: number) => number, - thisArg?: any, + from( @@ -274,7 +269,7 @@ Index: es2015.iterable.d.ts } interface Int32Array { -@@ -482,26 +469,23 @@ +@@ -492,25 +484,23 @@ } interface Int32ArrayConstructor { @@ -282,24 +277,23 @@ Index: es2015.iterable.d.ts - /** - * Creates an array from an array-like or iterable object. -- * @param arrayLike An array-like or iterable object to convert to an array. -- * @param mapfn A mapping function to call on every element of the array. -- * @param thisArg Value of 'this' used to invoke the mapfn. +- * @param elements An iterable object to convert to an array. + * Creates an array from an iterable object. + * @param iterable An iterable object to convert to an array. */ -- from(arrayLike: Iterable): Int32Array; +- from(elements: Iterable): Int32Array; +- + from(iterable: Iterable | ArrayLike): Int32Array; /** - * Creates an array from an array-like or iterable object. -- * @param arrayLike An array-like or iterable object to convert to an array. +- * @param elements An iterable object to convert to an array. + * Creates an array from an iterable object. + * @param iterable An iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from( -- arrayLike: Iterable, +- elements: Iterable, - mapfn?: (v: T, k: number) => number, - thisArg?: any, + from( @@ -310,7 +304,7 @@ Index: es2015.iterable.d.ts } interface Uint32Array { -@@ -521,26 +505,25 @@ +@@ -533,25 +523,25 @@ } interface Uint32ArrayConstructor { @@ -318,26 +312,25 @@ Index: es2015.iterable.d.ts - /** - * Creates an array from an array-like or iterable object. -- * @param arrayLike An array-like or iterable object to convert to an array. -- * @param mapfn A mapping function to call on every element of the array. -- * @param thisArg Value of 'this' used to invoke the mapfn. +- * @param elements An iterable object to convert to an array. + * Creates an array from an iterable object. + * @param iterable An iterable object to convert to an array. */ -- from(arrayLike: Iterable): Uint32Array; +- from(elements: Iterable): Uint32Array; +- + from( + iterable: Iterable | ArrayLike, + ): Uint32Array; /** - * Creates an array from an array-like or iterable object. -- * @param arrayLike An array-like or iterable object to convert to an array. +- * @param elements An iterable object to convert to an array. + * Creates an array from an iterable object. + * @param iterable An iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from( -- arrayLike: Iterable, +- elements: Iterable, - mapfn?: (v: T, k: number) => number, - thisArg?: any, + from( @@ -348,7 +341,7 @@ Index: es2015.iterable.d.ts } interface Float32Array { -@@ -560,26 +543,25 @@ +@@ -574,25 +564,25 @@ } interface Float32ArrayConstructor { @@ -356,26 +349,25 @@ Index: es2015.iterable.d.ts - /** - * Creates an array from an array-like or iterable object. -- * @param arrayLike An array-like or iterable object to convert to an array. -- * @param mapfn A mapping function to call on every element of the array. -- * @param thisArg Value of 'this' used to invoke the mapfn. +- * @param elements An iterable object to convert to an array. + * Creates an array from an iterable object. + * @param iterable An iterable object to convert to an array. */ -- from(arrayLike: Iterable): Float32Array; +- from(elements: Iterable): Float32Array; +- + from( + iterable: Iterable | ArrayLike, + ): Float32Array; /** - * Creates an array from an array-like or iterable object. -- * @param arrayLike An array-like or iterable object to convert to an array. +- * @param elements An iterable object to convert to an array. + * Creates an array from an iterable object. + * @param iterable An iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from( -- arrayLike: Iterable, +- elements: Iterable, - mapfn?: (v: T, k: number) => number, - thisArg?: any, + from( @@ -386,7 +378,7 @@ Index: es2015.iterable.d.ts } interface Float64Array { -@@ -599,24 +581,23 @@ +@@ -615,23 +605,23 @@ } interface Float64ArrayConstructor { @@ -394,26 +386,25 @@ Index: es2015.iterable.d.ts - /** - * Creates an array from an array-like or iterable object. -- * @param arrayLike An array-like or iterable object to convert to an array. -- * @param mapfn A mapping function to call on every element of the array. -- * @param thisArg Value of 'this' used to invoke the mapfn. +- * @param elements An iterable object to convert to an array. + * Creates an array from an iterable object. + * @param iterable An iterable object to convert to an array. */ -- from(arrayLike: Iterable): Float64Array; +- from(elements: Iterable): Float64Array; +- + from( + iterable: Iterable | ArrayLike, + ): Float64Array; /** - * Creates an array from an array-like or iterable object. -- * @param arrayLike An array-like or iterable object to convert to an array. +- * @param elements An iterable object to convert to an array. + * Creates an array from an iterable object. + * @param iterable An iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from( -- arrayLike: Iterable, +- elements: Iterable, - mapfn?: (v: T, k: number) => number, - thisArg?: any, + from( diff --git a/docs/diff/es2020.bigint.d.ts.md b/docs/diff/es2020.bigint.d.ts.md index 4697ef7..7235c4b 100644 --- a/docs/diff/es2020.bigint.d.ts.md +++ b/docs/diff/es2020.bigint.d.ts.md @@ -274,7 +274,7 @@ Index: es2020.bigint.d.ts /** * Sorts the array. -@@ -578,26 +563,25 @@ +@@ -583,43 +568,25 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -282,23 +282,41 @@ Index: es2020.bigint.d.ts - /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. -- * @param mapfn A mapping function to call on every element of the array. -- * @param thisArg Value of 'this' used to invoke the mapfn. +- * @param arrayLike An array-like object to convert to an array. ++ * @param arrayLike An array-like or iterable object to convert to an array. */ - from(arrayLike: ArrayLike): BigInt64Array; +- +- /** +- * Creates an array from an array-like or iterable object. +- * @param arrayLike An array-like object to convert to an array. +- * @param mapfn A mapping function to call on every element of the array. +- * @param thisArg Value of 'this' used to invoke the mapfn. +- */ +- from( +- arrayLike: ArrayLike, +- mapfn: (v: U, k: number) => bigint, +- thisArg?: any, + from( + arrayLike: Iterable | ArrayLike, -+ ): BigInt64Array; + ): BigInt64Array; +- /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. +- * @param elements An iterable object to convert to an array. +- */ +- from(elements: Iterable): BigInt64Array; +- +- /** +- * Creates an array from an array-like or iterable object. +- * @param elements An iterable object to convert to an array. ++ * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ -- from( -- arrayLike: ArrayLike, -- mapfn: (v: U, k: number) => bigint, +- from( +- elements: Iterable, +- mapfn?: (v: T, k: number) => bigint, - thisArg?: any, + from( + arrayLike: Iterable | ArrayLike, @@ -308,7 +326,7 @@ Index: es2020.bigint.d.ts } declare var BigInt64Array: BigInt64ArrayConstructor; -@@ -632,24 +616,24 @@ +@@ -654,24 +621,24 @@ copyWithin(target: number, start: number, end?: number): this; /** Yields index, value pairs for every entry in the array. */ @@ -337,7 +355,7 @@ Index: es2020.bigint.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -659,25 +643,24 @@ +@@ -681,25 +648,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -369,7 +387,7 @@ Index: es2020.bigint.d.ts * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -685,17 +668,17 @@ +@@ -707,17 +673,17 @@ * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -391,7 +409,7 @@ Index: es2020.bigint.d.ts * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -703,31 +686,27 @@ +@@ -725,31 +691,27 @@ * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -430,7 +448,7 @@ Index: es2020.bigint.d.ts /** * Determines whether an array includes a certain element, returning true or false as appropriate. -@@ -763,45 +742,40 @@ +@@ -785,45 +747,40 @@ lastIndexOf(searchElement: bigint, fromIndex?: number): number; /** The length of the array. */ @@ -486,7 +504,7 @@ Index: es2020.bigint.d.ts * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. -@@ -810,37 +784,32 @@ +@@ -832,37 +789,32 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -531,7 +549,7 @@ Index: es2020.bigint.d.ts * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. -@@ -849,14 +818,14 @@ +@@ -871,14 +823,14 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -548,7 +566,7 @@ Index: es2020.bigint.d.ts initialValue: U, ): U; -@@ -875,24 +844,24 @@ +@@ -897,24 +849,24 @@ * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. */ @@ -577,7 +595,7 @@ Index: es2020.bigint.d.ts /** * Sorts the array. -@@ -949,21 +918,26 @@ +@@ -976,43 +928,25 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -585,31 +603,49 @@ Index: es2020.bigint.d.ts - /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. -+ */ +- * @param arrayLike An array-like object to convert to an array. ++ * @param arrayLike An array-like or iterable object to convert to an array. + */ +- from(arrayLike: ArrayLike): BigUint64Array; +- +- /** +- * Creates an array from an array-like or iterable object. +- * @param arrayLike An array-like object to convert to an array. +- * @param mapfn A mapping function to call on every element of the array. +- * @param thisArg Value of 'this' used to invoke the mapfn. +- */ +- from( +- arrayLike: ArrayLike, +- mapfn: (v: U, k: number) => bigint, +- thisArg?: any, + from( + arrayLike: Iterable | ArrayLike, -+ ): BigUint64Array; -+ /** -+ * Creates an array from an array-like or iterable object. + ): BigUint64Array; +- + /** + * Creates an array from an array-like or iterable object. +- * @param elements An iterable object to convert to an array. +- */ +- from(elements: Iterable): BigUint64Array; +- +- /** +- * Creates an array from an array-like or iterable object. +- * @param elements An iterable object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ -- from(arrayLike: ArrayLike): BigUint64Array; -- from( -- arrayLike: ArrayLike, -- mapfn: (v: U, k: number) => bigint, +- from( +- elements: Iterable, +- mapfn?: (v: T, k: number) => bigint, - thisArg?: any, -- ): BigUint64Array; + from( + arrayLike: Iterable | ArrayLike, + mapfn: (this: This, v: T, k: number) => bigint, + thisArg?: This, -+ ): BigUint64Array; + ): BigUint64Array; } declare var BigUint64Array: BigUint64ArrayConstructor; - interface DataView { ``` diff --git a/docs/diff/es5.d.ts.md b/docs/diff/es5.d.ts.md index 3ed6956..40393d0 100644 --- a/docs/diff/es5.d.ts.md +++ b/docs/diff/es5.d.ts.md @@ -428,8 +428,10 @@ Index: es5.d.ts ): boolean; /** * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. +- * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. +- * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. ++ * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. ++ * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. */ - forEach( - callbackfn: (value: T, index: number, array: readonly T[]) => void, @@ -614,8 +616,10 @@ Index: es5.d.ts ): boolean; /** * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. +- * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. +- * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. ++ * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. ++ * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. */ - forEach( - callbackfn: (value: T, index: number, array: T[]) => void, @@ -975,9 +979,11 @@ Index: es5.d.ts - /** * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the +- * @param callbackfn A function that accepts up to three arguments. forEach calls the ++ * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. +- * @param thisArg An object to which the this keyword can refer in the callbackfn function. ++ * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - forEach( @@ -1146,7 +1152,7 @@ Index: es5.d.ts /** * Sorts an array. -@@ -2438,25 +2523,23 @@ +@@ -2443,25 +2528,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -1154,13 +1160,15 @@ Index: es5.d.ts - /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. +- * @param arrayLike An array-like object to convert to an array. ++ * @param arrayLike An array-like or iterable object to convert to an array. */ from(arrayLike: ArrayLike): Int8Array; - /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. +- * @param arrayLike An array-like object to convert to an array. ++ * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ @@ -1175,7 +1183,7 @@ Index: es5.d.ts } declare var Int8Array: Int8ArrayConstructor; -@@ -2494,20 +2577,24 @@ +@@ -2499,20 +2582,24 @@ * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ @@ -1204,7 +1212,7 @@ Index: es5.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -2517,21 +2604,24 @@ +@@ -2522,21 +2609,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -1235,7 +1243,7 @@ Index: es5.d.ts * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -2539,13 +2629,12 @@ +@@ -2544,13 +2634,12 @@ * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -1252,7 +1260,7 @@ Index: es5.d.ts * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -2553,23 +2642,22 @@ +@@ -2558,23 +2647,22 @@ * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -1267,9 +1275,11 @@ Index: es5.d.ts - /** * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the +- * @param callbackfn A function that accepts up to three arguments. forEach calls the ++ * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. +- * @param thisArg An object to which the this keyword can refer in the callbackfn function. ++ * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - forEach( @@ -1282,7 +1292,7 @@ Index: es5.d.ts /** * Returns the index of the first occurrence of a value in an array. -@@ -2597,50 +2685,40 @@ +@@ -2602,50 +2690,40 @@ /** * The length of the array. */ @@ -1346,7 +1356,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. -@@ -2649,46 +2727,32 @@ +@@ -2654,46 +2732,32 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -1398,7 +1408,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. -@@ -2697,9 +2761,9 @@ +@@ -2702,9 +2766,9 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -1409,7 +1419,7 @@ Index: es5.d.ts previousValue: U, currentValue: number, currentIndex: number, -@@ -2725,20 +2789,24 @@ +@@ -2730,20 +2794,24 @@ * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ @@ -1438,7 +1448,7 @@ Index: es5.d.ts /** * Sorts an array. -@@ -2794,25 +2862,23 @@ +@@ -2804,25 +2872,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -1446,13 +1456,15 @@ Index: es5.d.ts - /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. +- * @param arrayLike An array-like object to convert to an array. ++ * @param arrayLike An array-like or iterable object to convert to an array. */ from(arrayLike: ArrayLike): Uint8Array; - /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. +- * @param arrayLike An array-like object to convert to an array. ++ * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ @@ -1467,7 +1479,7 @@ Index: es5.d.ts } declare var Uint8Array: Uint8ArrayConstructor; -@@ -2852,20 +2918,24 @@ +@@ -2862,20 +2928,24 @@ * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ @@ -1496,7 +1508,7 @@ Index: es5.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -2875,21 +2945,24 @@ +@@ -2885,21 +2955,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -1527,7 +1539,7 @@ Index: es5.d.ts * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -2897,13 +2970,12 @@ +@@ -2907,13 +2980,12 @@ * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -1544,7 +1556,7 @@ Index: es5.d.ts * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -2911,23 +2983,22 @@ +@@ -2921,23 +2993,22 @@ * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -1559,9 +1571,11 @@ Index: es5.d.ts - /** * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the +- * @param callbackfn A function that accepts up to three arguments. forEach calls the ++ * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. +- * @param thisArg An object to which the this keyword can refer in the callbackfn function. ++ * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - forEach( @@ -1574,7 +1588,7 @@ Index: es5.d.ts /** * Returns the index of the first occurrence of a value in an array. -@@ -2955,50 +3026,40 @@ +@@ -2965,50 +3036,40 @@ /** * The length of the array. */ @@ -1638,7 +1652,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. -@@ -3007,46 +3068,32 @@ +@@ -3017,46 +3078,32 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -1690,7 +1704,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. -@@ -3055,9 +3102,9 @@ +@@ -3065,9 +3112,9 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -1701,7 +1715,7 @@ Index: es5.d.ts previousValue: U, currentValue: number, currentIndex: number, -@@ -3083,20 +3130,24 @@ +@@ -3093,20 +3140,24 @@ * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ @@ -1730,7 +1744,7 @@ Index: es5.d.ts /** * Sorts an array. -@@ -3152,25 +3203,23 @@ +@@ -3167,25 +3218,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -1738,13 +1752,15 @@ Index: es5.d.ts - /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. +- * @param arrayLike An array-like object to convert to an array. ++ * @param arrayLike An array-like or iterable object to convert to an array. */ from(arrayLike: ArrayLike): Uint8ClampedArray; - /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. +- * @param arrayLike An array-like object to convert to an array. ++ * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ @@ -1759,7 +1775,7 @@ Index: es5.d.ts } declare var Uint8ClampedArray: Uint8ClampedArrayConstructor; -@@ -3208,20 +3257,24 @@ +@@ -3223,20 +3272,24 @@ * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ @@ -1788,7 +1804,7 @@ Index: es5.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -3231,21 +3284,24 @@ +@@ -3246,21 +3299,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -1819,7 +1835,7 @@ Index: es5.d.ts * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -3253,13 +3309,12 @@ +@@ -3268,13 +3324,12 @@ * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -1836,7 +1852,7 @@ Index: es5.d.ts * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -3267,23 +3322,22 @@ +@@ -3282,23 +3337,22 @@ * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -1851,9 +1867,11 @@ Index: es5.d.ts - /** * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the +- * @param callbackfn A function that accepts up to three arguments. forEach calls the ++ * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. +- * @param thisArg An object to which the this keyword can refer in the callbackfn function. ++ * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - forEach( @@ -1866,7 +1884,7 @@ Index: es5.d.ts /** * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. -@@ -3310,50 +3364,40 @@ +@@ -3325,50 +3379,40 @@ /** * The length of the array. */ @@ -1930,7 +1948,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. -@@ -3362,46 +3406,32 @@ +@@ -3377,46 +3421,32 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -1982,7 +2000,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. -@@ -3410,9 +3440,9 @@ +@@ -3425,9 +3455,9 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -1993,7 +2011,7 @@ Index: es5.d.ts previousValue: U, currentValue: number, currentIndex: number, -@@ -3438,20 +3468,24 @@ +@@ -3453,20 +3483,24 @@ * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ @@ -2022,7 +2040,7 @@ Index: es5.d.ts /** * Sorts an array. -@@ -3507,25 +3541,23 @@ +@@ -3527,25 +3561,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -2030,13 +2048,15 @@ Index: es5.d.ts - /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. +- * @param arrayLike An array-like object to convert to an array. ++ * @param arrayLike An array-like or iterable object to convert to an array. */ from(arrayLike: ArrayLike): Int16Array; - /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. +- * @param arrayLike An array-like object to convert to an array. ++ * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ @@ -2051,7 +2071,7 @@ Index: es5.d.ts } declare var Int16Array: Int16ArrayConstructor; -@@ -3563,20 +3595,24 @@ +@@ -3583,20 +3615,24 @@ * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ @@ -2080,7 +2100,7 @@ Index: es5.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -3586,21 +3622,24 @@ +@@ -3606,21 +3642,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -2111,7 +2131,7 @@ Index: es5.d.ts * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -3608,13 +3647,12 @@ +@@ -3628,13 +3667,12 @@ * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -2128,7 +2148,7 @@ Index: es5.d.ts * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -3622,23 +3660,22 @@ +@@ -3642,23 +3680,22 @@ * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -2143,9 +2163,11 @@ Index: es5.d.ts - /** * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the +- * @param callbackfn A function that accepts up to three arguments. forEach calls the ++ * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. +- * @param thisArg An object to which the this keyword can refer in the callbackfn function. ++ * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - forEach( @@ -2158,7 +2180,7 @@ Index: es5.d.ts /** * Returns the index of the first occurrence of a value in an array. -@@ -3666,50 +3703,40 @@ +@@ -3686,50 +3723,40 @@ /** * The length of the array. */ @@ -2222,7 +2244,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. -@@ -3718,46 +3745,32 @@ +@@ -3738,46 +3765,32 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -2274,7 +2296,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. -@@ -3766,9 +3779,9 @@ +@@ -3786,9 +3799,9 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -2285,7 +2307,7 @@ Index: es5.d.ts previousValue: U, currentValue: number, currentIndex: number, -@@ -3794,20 +3807,24 @@ +@@ -3814,20 +3827,24 @@ * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ @@ -2314,7 +2336,7 @@ Index: es5.d.ts /** * Sorts an array. -@@ -3863,25 +3880,23 @@ +@@ -3888,25 +3905,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -2322,13 +2344,15 @@ Index: es5.d.ts - /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. +- * @param arrayLike An array-like object to convert to an array. ++ * @param arrayLike An array-like or iterable object to convert to an array. */ from(arrayLike: ArrayLike): Uint16Array; - /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. +- * @param arrayLike An array-like object to convert to an array. ++ * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ @@ -2343,7 +2367,7 @@ Index: es5.d.ts } declare var Uint16Array: Uint16ArrayConstructor; /** -@@ -3918,20 +3933,24 @@ +@@ -3943,20 +3958,24 @@ * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ @@ -2372,7 +2396,7 @@ Index: es5.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -3941,21 +3960,24 @@ +@@ -3966,21 +3985,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -2403,7 +2427,7 @@ Index: es5.d.ts * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -3963,13 +3985,12 @@ +@@ -3988,13 +4010,12 @@ * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -2420,7 +2444,7 @@ Index: es5.d.ts * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -3977,23 +3998,22 @@ +@@ -4002,23 +4023,22 @@ * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -2435,9 +2459,11 @@ Index: es5.d.ts - /** * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the +- * @param callbackfn A function that accepts up to three arguments. forEach calls the ++ * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. +- * @param thisArg An object to which the this keyword can refer in the callbackfn function. ++ * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - forEach( @@ -2450,7 +2476,7 @@ Index: es5.d.ts /** * Returns the index of the first occurrence of a value in an array. -@@ -4021,50 +4041,40 @@ +@@ -4046,50 +4066,40 @@ /** * The length of the array. */ @@ -2514,7 +2540,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. -@@ -4073,46 +4083,32 @@ +@@ -4098,46 +4108,32 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -2566,7 +2592,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. -@@ -4121,9 +4117,9 @@ +@@ -4146,9 +4142,9 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -2577,7 +2603,7 @@ Index: es5.d.ts previousValue: U, currentValue: number, currentIndex: number, -@@ -4149,20 +4145,24 @@ +@@ -4174,20 +4170,24 @@ * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ @@ -2606,7 +2632,7 @@ Index: es5.d.ts /** * Sorts an array. -@@ -4218,25 +4218,23 @@ +@@ -4248,25 +4248,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -2614,13 +2640,15 @@ Index: es5.d.ts - /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. +- * @param arrayLike An array-like object to convert to an array. ++ * @param arrayLike An array-like or iterable object to convert to an array. */ from(arrayLike: ArrayLike): Int32Array; - /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. +- * @param arrayLike An array-like object to convert to an array. ++ * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ @@ -2635,7 +2663,7 @@ Index: es5.d.ts } declare var Int32Array: Int32ArrayConstructor; -@@ -4274,20 +4272,24 @@ +@@ -4304,20 +4302,24 @@ * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ @@ -2664,7 +2692,7 @@ Index: es5.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -4297,21 +4299,24 @@ +@@ -4327,21 +4329,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -2695,7 +2723,7 @@ Index: es5.d.ts * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -4319,13 +4324,12 @@ +@@ -4349,13 +4354,12 @@ * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -2712,7 +2740,7 @@ Index: es5.d.ts * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -4333,23 +4337,22 @@ +@@ -4363,23 +4367,22 @@ * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -2727,9 +2755,11 @@ Index: es5.d.ts - /** * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the +- * @param callbackfn A function that accepts up to three arguments. forEach calls the ++ * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. +- * @param thisArg An object to which the this keyword can refer in the callbackfn function. ++ * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - forEach( @@ -2742,7 +2772,7 @@ Index: es5.d.ts /** * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. -@@ -4376,50 +4379,40 @@ +@@ -4406,50 +4409,40 @@ /** * The length of the array. */ @@ -2806,7 +2836,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. -@@ -4428,46 +4421,32 @@ +@@ -4458,46 +4451,32 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -2858,7 +2888,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. -@@ -4476,9 +4455,9 @@ +@@ -4506,9 +4485,9 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -2869,7 +2899,7 @@ Index: es5.d.ts previousValue: U, currentValue: number, currentIndex: number, -@@ -4504,20 +4483,24 @@ +@@ -4534,20 +4513,24 @@ * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ @@ -2898,7 +2928,7 @@ Index: es5.d.ts /** * Sorts an array. -@@ -4573,25 +4556,23 @@ +@@ -4608,25 +4591,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -2906,13 +2936,15 @@ Index: es5.d.ts - /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. +- * @param arrayLike An array-like object to convert to an array. ++ * @param arrayLike An array-like or iterable object to convert to an array. */ from(arrayLike: ArrayLike): Uint32Array; - /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. +- * @param arrayLike An array-like object to convert to an array. ++ * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ @@ -2927,7 +2959,7 @@ Index: es5.d.ts } declare var Uint32Array: Uint32ArrayConstructor; -@@ -4629,20 +4610,24 @@ +@@ -4664,20 +4645,24 @@ * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ @@ -2956,7 +2988,7 @@ Index: es5.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -4652,21 +4637,24 @@ +@@ -4687,21 +4672,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -2987,7 +3019,7 @@ Index: es5.d.ts * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -4674,13 +4662,12 @@ +@@ -4709,13 +4697,12 @@ * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -3004,7 +3036,7 @@ Index: es5.d.ts * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -4688,23 +4675,22 @@ +@@ -4723,23 +4710,22 @@ * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -3019,9 +3051,11 @@ Index: es5.d.ts - /** * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the +- * @param callbackfn A function that accepts up to three arguments. forEach calls the ++ * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. +- * @param thisArg An object to which the this keyword can refer in the callbackfn function. ++ * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - forEach( @@ -3034,7 +3068,7 @@ Index: es5.d.ts /** * Returns the index of the first occurrence of a value in an array. -@@ -4732,50 +4718,40 @@ +@@ -4767,50 +4753,40 @@ /** * The length of the array. */ @@ -3098,7 +3132,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. -@@ -4784,46 +4760,32 @@ +@@ -4819,46 +4795,32 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -3150,7 +3184,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. -@@ -4832,9 +4794,9 @@ +@@ -4867,9 +4829,9 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -3161,7 +3195,7 @@ Index: es5.d.ts previousValue: U, currentValue: number, currentIndex: number, -@@ -4860,20 +4822,24 @@ +@@ -4895,20 +4857,24 @@ * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ @@ -3190,7 +3224,7 @@ Index: es5.d.ts /** * Sorts an array. -@@ -4929,25 +4895,23 @@ +@@ -4969,25 +4935,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -3198,13 +3232,15 @@ Index: es5.d.ts - /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. +- * @param arrayLike An array-like object to convert to an array. ++ * @param arrayLike An array-like or iterable object to convert to an array. */ from(arrayLike: ArrayLike): Float32Array; - /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. +- * @param arrayLike An array-like object to convert to an array. ++ * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ @@ -3219,7 +3255,7 @@ Index: es5.d.ts } declare var Float32Array: Float32ArrayConstructor; -@@ -4985,20 +4949,24 @@ +@@ -5025,20 +4989,24 @@ * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ @@ -3248,7 +3284,7 @@ Index: es5.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -5008,21 +4976,24 @@ +@@ -5048,21 +5016,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -3279,7 +3315,7 @@ Index: es5.d.ts * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -5030,13 +5001,12 @@ +@@ -5070,13 +5041,12 @@ * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -3296,7 +3332,7 @@ Index: es5.d.ts * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -5044,23 +5014,22 @@ +@@ -5084,23 +5054,22 @@ * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. @@ -3311,9 +3347,11 @@ Index: es5.d.ts - /** * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the +- * @param callbackfn A function that accepts up to three arguments. forEach calls the ++ * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. +- * @param thisArg An object to which the this keyword can refer in the callbackfn function. ++ * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - forEach( @@ -3326,7 +3364,7 @@ Index: es5.d.ts /** * Returns the index of the first occurrence of a value in an array. -@@ -5088,50 +5057,40 @@ +@@ -5128,50 +5097,40 @@ /** * The length of the array. */ @@ -3390,7 +3428,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. -@@ -5140,46 +5099,32 @@ +@@ -5180,46 +5139,32 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -3442,7 +3480,7 @@ Index: es5.d.ts * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. -@@ -5188,9 +5133,9 @@ +@@ -5228,9 +5173,9 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -3453,7 +3491,7 @@ Index: es5.d.ts previousValue: U, currentValue: number, currentIndex: number, -@@ -5216,20 +5161,24 @@ +@@ -5256,20 +5201,24 @@ * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ @@ -3482,7 +3520,7 @@ Index: es5.d.ts /** * Sorts an array. -@@ -5285,25 +5234,23 @@ +@@ -5330,25 +5279,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -3490,13 +3528,15 @@ Index: es5.d.ts - /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. +- * @param arrayLike An array-like object to convert to an array. ++ * @param arrayLike An array-like or iterable object to convert to an array. */ from(arrayLike: ArrayLike): Float64Array; - /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. +- * @param arrayLike An array-like object to convert to an array. ++ * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ @@ -3511,7 +3551,7 @@ Index: es5.d.ts } declare var Float64Array: Float64ArrayConstructor; -@@ -5564,4 +5511,33 @@ +@@ -5609,4 +5556,33 @@ locales?: string | string[], options?: Intl.DateTimeFormatOptions, ): string; diff --git a/generated/lib.dom.d.ts b/generated/lib.dom.d.ts index 684742a..766330c 100644 --- a/generated/lib.dom.d.ts +++ b/generated/lib.dom.d.ts @@ -769,6 +769,26 @@ interface ImageDataSettings { colorSpace?: PredefinedColorSpace; } +interface ImageDecodeOptions { + completeFramesOnly?: boolean; + frameIndex?: number; +} + +interface ImageDecodeResult { + complete: boolean; + image: VideoFrame; +} + +interface ImageDecoderInit { + colorSpaceConversion?: ColorSpaceConversion; + data: ImageBufferSource; + desiredHeight?: number; + desiredWidth?: number; + preferAnimation?: boolean; + transfer?: ArrayBuffer[]; + type: string; +} + interface ImageEncodeOptions { quality?: number; type?: string; @@ -1160,6 +1180,15 @@ interface OscillatorOptions extends AudioNodeOptions { type?: OscillatorType; } +interface PageRevealEventInit extends EventInit { + viewTransition?: ViewTransition | null; +} + +interface PageSwapEventInit extends EventInit { + activation?: NavigationActivation | null; + viewTransition?: ViewTransition | null; +} + interface PageTransitionEventInit extends EventInit { persisted?: boolean; } @@ -1549,13 +1578,18 @@ interface RTCIceCandidateInit { interface RTCIceCandidatePairStats extends RTCStats { availableIncomingBitrate?: number; availableOutgoingBitrate?: number; + bytesDiscardedOnSend?: number; bytesReceived?: number; bytesSent?: number; + consentRequestsSent?: number; currentRoundTripTime?: number; lastPacketReceivedTimestamp?: DOMHighResTimeStamp; lastPacketSentTimestamp?: DOMHighResTimeStamp; localCandidateId: string; nominated?: boolean; + packetsDiscardedOnSend?: number; + packetsReceived?: number; + packetsSent?: number; remoteCandidateId: string; requestsReceived?: number; requestsSent?: number; @@ -1579,32 +1613,47 @@ interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats { concealmentEvents?: number; decoderImplementation?: string; estimatedPlayoutTimestamp?: DOMHighResTimeStamp; + fecBytesReceived?: number; fecPacketsDiscarded?: number; fecPacketsReceived?: number; + fecSsrc?: number; firCount?: number; frameHeight?: number; frameWidth?: number; + framesAssembledFromMultiplePackets?: number; framesDecoded?: number; framesDropped?: number; framesPerSecond?: number; framesReceived?: number; + framesRendered?: number; + freezeCount?: number; headerBytesReceived?: number; insertedSamplesForDeceleration?: number; jitterBufferDelay?: number; jitterBufferEmittedCount?: number; + jitterBufferMinimumDelay?: number; + jitterBufferTargetDelay?: number; keyFramesDecoded?: number; lastPacketReceivedTimestamp?: DOMHighResTimeStamp; mid?: string; nackCount?: number; packetsDiscarded?: number; + pauseCount?: number; + playoutId?: string; pliCount?: number; qpSum?: number; remoteId?: string; removedSamplesForAcceleration?: number; + retransmittedBytesReceived?: number; + retransmittedPacketsReceived?: number; + rtxSsrc?: number; silentConcealedSamples?: number; + totalAssemblyTime?: number; totalAudioEnergy?: number; totalDecodeTime?: number; + totalFreezesDuration?: number; totalInterFrameDelay?: number; + totalPausesDuration?: number; totalProcessingDelay?: number; totalSamplesDuration?: number; totalSamplesReceived?: number; @@ -1626,6 +1675,7 @@ interface RTCOfferOptions extends RTCOfferAnswerOptions { } interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats { + active?: boolean; firCount?: number; frameHeight?: number; frameWidth?: number; @@ -1636,15 +1686,19 @@ interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats { hugeFramesSent?: number; keyFramesEncoded?: number; mediaSourceId?: string; + mid?: string; nackCount?: number; pliCount?: number; qpSum?: number; + qualityLimitationDurations?: Record; + qualityLimitationReason?: RTCQualityLimitationReason; qualityLimitationResolutionChanges?: number; remoteId?: string; retransmittedBytesSent?: number; retransmittedPacketsSent?: number; rid?: string; rtxSsrc?: number; + scalabilityMode?: string; targetBitrate?: number; totalEncodeTime?: number; totalEncodedBytesTarget?: number; @@ -1779,9 +1833,16 @@ interface RTCTransportStats extends RTCStats { bytesReceived?: number; bytesSent?: number; dtlsCipher?: string; + dtlsRole?: RTCDtlsRole; dtlsState: RTCDtlsTransportState; + iceLocalUsernameFragment?: string; + iceRole?: RTCIceRole; + iceState?: RTCIceTransportState; localCertificateId?: string; + packetsReceived?: number; + packetsSent?: number; remoteCertificateId?: string; + selectedCandidatePairChanges?: number; selectedCandidatePairId?: string; srtpCipher?: string; tlsVersion?: string; @@ -2455,6 +2516,8 @@ interface ARIAMixin { ariaPressed: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaReadOnly) */ ariaReadOnly: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRelevant) */ + ariaRelevant: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRequired) */ ariaRequired: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRoleDescription) */ @@ -3919,7 +3982,8 @@ declare var CSSCounterStyleRule: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule) */ interface CSSFontFaceRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style) */ - readonly style: CSSStyleDeclaration; + get style(): CSSStyleDeclaration; + set style(cssText: string); } declare var CSSFontFaceRule: { @@ -3989,7 +4053,8 @@ interface CSSImportRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/layerName) */ readonly layerName: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media) */ - readonly media: MediaList; + get media(): MediaList; + set media(mediaText: string); /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/styleSheet) */ readonly styleSheet: CSSStyleSheet | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/supportsText) */ @@ -4010,7 +4075,8 @@ interface CSSKeyframeRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/keyText) */ keyText: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style) */ - readonly style: CSSStyleDeclaration; + get style(): CSSStyleDeclaration; + set style(cssText: string); } declare var CSSKeyframeRule: { @@ -4190,7 +4256,8 @@ declare var CSSMatrixComponent: { */ interface CSSMediaRule extends CSSConditionRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule/media) */ - readonly media: MediaList; + get media(): MediaList; + set media(mediaText: string); } declare var CSSMediaRule: { @@ -4215,6 +4282,18 @@ declare var CSSNamespaceRule: { new (): CSSNamespaceRule; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations) */ +interface CSSNestedDeclarations extends CSSRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations/style) */ + get style(): CSSStyleDeclaration; + set style(cssText: string); +} + +declare var CSSNestedDeclarations: { + prototype: CSSNestedDeclarations; + new (): CSSNestedDeclarations; +}; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray) */ interface CSSNumericArray { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length) */ @@ -4275,7 +4354,8 @@ interface CSSPageRule extends CSSGroupingRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/selectorText) */ selectorText: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/style) */ - readonly style: CSSStyleDeclaration; + get style(): CSSStyleDeclaration; + set style(cssText: string); } declare var CSSPageRule: { @@ -4486,6 +4566,7 @@ interface CSSStyleDeclaration { alignItems: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) */ alignSelf: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/alignment-baseline) */ alignmentBaseline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/all) */ all: string; @@ -4669,6 +4750,8 @@ interface CSSStyleDeclaration { borderWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/bottom) */ bottom: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-decoration-break) */ + boxDecorationBreak: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) */ boxShadow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) */ @@ -4795,7 +4878,9 @@ interface CSSStyleDeclaration { flexWrap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/float) */ float: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flood-color) */ floodColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flood-opacity) */ floodOpacity: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font) */ font: string; @@ -4927,6 +5012,7 @@ interface CSSStyleDeclaration { readonly length: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/letter-spacing) */ letterSpacing: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/lighting-color) */ lightingColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-break) */ lineBreak: string; @@ -5090,11 +5176,23 @@ interface CSSStyleDeclaration { paddingTop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page) */ page: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-after) */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-after) + */ pageBreakAfter: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-before) */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-before) + */ pageBreakBefore: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-inside) */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-inside) + */ pageBreakInside: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/paint-order) */ paintOrder: string; @@ -5234,6 +5332,9 @@ interface CSSStyleDeclaration { textAlignLast: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-anchor) */ textAnchor: string; + textBox: string; + textBoxEdge: string; + textBoxTrim: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-combine-upright) */ textCombineUpright: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration) */ @@ -5312,6 +5413,7 @@ interface CSSStyleDeclaration { vectorEffect: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */ verticalAlign: string; + viewTransitionClass: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */ viewTransitionName: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */ @@ -5544,11 +5646,7 @@ interface CSSStyleDeclaration { * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content) */ webkitJustifyContent: string; - /** - * @deprecated This is a legacy alias of `lineClamp`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp) - */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp) */ webkitLineClamp: string; /** * @deprecated This is a legacy alias of `mask`. @@ -5734,7 +5832,11 @@ interface CSSStyleDeclaration { wordBreak: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-spacing) */ wordSpacing: string; - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-wrap) + */ wordWrap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/writing-mode) */ writingMode: string; @@ -5773,7 +5875,8 @@ interface CSSStyleRule extends CSSGroupingRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/selectorText) */ selectorText: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style) */ - readonly style: CSSStyleDeclaration; + get style(): CSSStyleDeclaration; + set style(cssText: string); /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/styleMap) */ readonly styleMap: StylePropertyMap; } @@ -5989,6 +6092,16 @@ declare var CSSVariableReferenceValue: { ): CSSVariableReferenceValue; }; +interface CSSViewTransitionRule extends CSSRule { + readonly navigation: string; + readonly types: ReadonlyArray; +} + +declare var CSSViewTransitionRule: { + prototype: CSSViewTransitionRule; + new (): CSSViewTransitionRule; +}; + /** * Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec. * Available only in secure contexts. @@ -6355,6 +6468,7 @@ interface CanvasRenderingContext2D CanvasPath, CanvasPathDrawingStyles, CanvasRect, + CanvasSettings, CanvasShadowStyles, CanvasState, CanvasText, @@ -6363,8 +6477,6 @@ interface CanvasRenderingContext2D CanvasUserInterface { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */ readonly canvas: HTMLCanvasElement; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getContextAttributes) */ - getContextAttributes(): CanvasRenderingContext2DSettings; } declare var CanvasRenderingContext2D: { @@ -6372,6 +6484,11 @@ declare var CanvasRenderingContext2D: { new (): CanvasRenderingContext2D; }; +interface CanvasSettings { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getContextAttributes) */ + getContextAttributes(): CanvasRenderingContext2DSettings; +} + interface CanvasShadowStyles { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowBlur) */ shadowBlur: number; @@ -7101,8 +7218,11 @@ interface DOMMatrix extends DOMMatrixReadOnly { m43: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m44: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/invertSelf) */ invertSelf(): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/multiplySelf) */ multiplySelf(other?: DOMMatrixInit): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/preMultiplySelf) */ preMultiplySelf(other?: DOMMatrixInit): DOMMatrix; rotateAxisAngleSelf( x?: number, @@ -7111,6 +7231,7 @@ interface DOMMatrix extends DOMMatrixReadOnly { angle?: number, ): DOMMatrix; rotateFromVectorSelf(x?: number, y?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateSelf) */ rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; scale3dSelf( scale?: number, @@ -7126,9 +7247,13 @@ interface DOMMatrix extends DOMMatrixReadOnly { originY?: number, originZ?: number, ): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/setMatrixValue) */ setMatrixValue(transformList: string): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewXSelf) */ skewXSelf(sx?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewYSelf) */ skewYSelf(sy?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/translateSelf) */ translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix; } @@ -7160,7 +7285,9 @@ interface DOMMatrixReadOnly { readonly e: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly f: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D) */ readonly is2D: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity) */ readonly isIdentity: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m11: number; @@ -7196,8 +7323,11 @@ interface DOMMatrixReadOnly { readonly m44: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */ flipX(): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY) */ flipY(): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse) */ inverse(): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply) */ multiply(other?: DOMMatrixInit): DOMMatrix; rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; rotateAxisAngle( @@ -7226,9 +7356,13 @@ interface DOMMatrixReadOnly { scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix; skewX(sx?: number): DOMMatrix; skewY(sy?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array) */ toFloat32Array(): Float32Array; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array) */ toFloat64Array(): Float64Array; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON) */ toJSON(): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint) */ transformPoint(point?: DOMPointInit): DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) */ translate(tx?: number, ty?: number, tz?: number): DOMMatrix; @@ -7300,6 +7434,7 @@ interface DOMPointReadOnly { readonly y: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) */ readonly z: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform) */ matrixTransform(matrix?: DOMMatrixInit): DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ toJSON(): any; @@ -7314,11 +7449,17 @@ declare var DOMPointReadOnly: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */ interface DOMQuad { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) */ readonly p1: DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) */ readonly p2: DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) */ readonly p3: DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) */ readonly p4: DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */ getBounds(): DOMRect; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON) */ toJSON(): any; } @@ -7336,9 +7477,13 @@ declare var DOMQuad: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */ interface DOMRect extends DOMRectReadOnly { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/height) */ height: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/width) */ width: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/x) */ x: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/y) */ y: number; } @@ -7352,8 +7497,11 @@ declare var DOMRect: { type SVGRect = DOMRect; declare var SVGRect: typeof DOMRect; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectList) */ interface DOMRectList { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectList/length) */ readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectList/item) */ item(index: number): DOMRect | null; [index: number]: DOMRect; } @@ -7381,6 +7529,7 @@ interface DOMRectReadOnly { readonly x: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */ readonly y: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) */ toJSON(): any; } @@ -8043,7 +8192,7 @@ interface Document * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/location) */ get location(): Location; - set location(href: string | Location); + set location(href: string); /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenchange_event) */ onfullscreenchange: ((this: Document, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenerror_event) */ @@ -8234,7 +8383,11 @@ interface Document qualifiedName: string, options?: string | ElementCreationOptions, ): Element; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createEvent) */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createEvent) + */ createEvent(eventInterface: "AnimationEvent"): AnimationEvent; createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent; createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent; @@ -8273,6 +8426,8 @@ interface Document createEvent( eventInterface: "OfflineAudioCompletionEvent", ): OfflineAudioCompletionEvent; + createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent; + createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent; createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent; createEvent( eventInterface: "PaymentMethodChangeEvent", @@ -8468,7 +8623,7 @@ interface Document * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/importNode) */ - importNode(node: T, deep?: boolean): T; + importNode(node: T, subtree?: boolean): T; /** * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method. * @param url Specifies a MIME type for the document. @@ -8527,6 +8682,7 @@ interface Document /** * Writes one or more HTML expressions to a document in the specified window. * @param content Specifies the text and HTML tags to write. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/write) */ @@ -8804,7 +8960,8 @@ interface Element * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/classList) */ - readonly classList: DOMTokenList; + get classList(): DOMTokenList; + set classList(value: string); /** * Returns the value of element's class content attribute. Can be set to change it. * @@ -8849,7 +9006,8 @@ interface Element outerHTML: string; readonly ownerDocument: Document; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/part) */ - readonly part: DOMTokenList; + get part(): DOMTokenList; + set part(value: string); /** * Returns the namespace prefix. * @@ -9114,7 +9272,8 @@ interface ElementCSSInlineStyle { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) */ readonly attributeStyleMap: StylePropertyMap; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */ - readonly style: CSSStyleDeclaration; + get style(): CSSStyleDeclaration; + set style(cssText: string); } interface ElementContentEditable { @@ -9252,10 +9411,15 @@ declare var EncodedVideoChunk: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent) */ interface ErrorEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */ readonly colno: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */ readonly error: any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */ readonly filename: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */ readonly lineno: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */ readonly message: string; } @@ -10048,6 +10212,16 @@ declare var FragmentDirective: { new (): FragmentDirective; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError) + */ +interface GPUError { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError/message) */ + readonly message: string; +} + /** * A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. * @@ -10390,7 +10564,7 @@ interface GlobalEventHandlers { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/cancel_event) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when playback is possible, but would require further buffering. @@ -10417,7 +10591,7 @@ interface GlobalEventHandlers { onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/webglcontextlost_event) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */ oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the user clicks the right mouse button in the client area, opening the context menu. @@ -10750,7 +10924,7 @@ interface GlobalEventHandlers { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event) */ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/toggle_event) */ ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */ ontouchcancel?: @@ -10932,7 +11106,8 @@ interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils { */ rel: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/relList) */ - readonly relList: DOMTokenList; + get relList(): DOMTokenList; + set relList(value: string); /** * Sets or retrieves the relationship between the object and the destination of the link. * @deprecated @@ -10990,10 +11165,19 @@ declare var HTMLAnchorElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement) */ interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils { - /** Sets or retrieves a text alternative to the graphic. */ + /** + * Sets or retrieves a text alternative to the graphic. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/alt) + */ alt: string; - /** Sets or retrieves the coordinates of the object. */ + /** + * Sets or retrieves the coordinates of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/coords) + */ coords: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/download) */ download: string; /** * Sets or gets whether clicks in this region cause action. @@ -11007,8 +11191,13 @@ interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/rel) */ rel: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/relList) */ - readonly relList: DOMTokenList; - /** Sets or retrieves the shape of the object. */ + get relList(): DOMTokenList; + set relList(value: string); + /** + * Sets or retrieves the shape of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/shape) + */ shape: string; /** * Sets or retrieves the window or frame at which to target content. @@ -11222,15 +11411,35 @@ interface HTMLButtonElement extends HTMLElement, PopoverInvokerElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/form) */ readonly form: HTMLFormElement | null; - /** Overrides the action attribute (where the data on a form is sent) on the parent form element. */ + /** + * Overrides the action attribute (where the data on a form is sent) on the parent form element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formAction) + */ formAction: string; - /** Used to override the encoding (formEnctype attribute) specified on the form element. */ + /** + * Used to override the encoding (formEnctype attribute) specified on the form element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formEnctype) + */ formEnctype: string; - /** Overrides the submit method attribute previously specified on a form element. */ + /** + * Overrides the submit method attribute previously specified on a form element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formMethod) + */ formMethod: string; - /** Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. */ + /** + * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formNoValidate) + */ formNoValidate: boolean; - /** Overrides the target attribute on a form element. */ + /** + * Overrides the target attribute on a form element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formTarget) + */ formTarget: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/labels) */ readonly labels: NodeListOf; @@ -11356,14 +11565,14 @@ interface HTMLCanvasElement extends HTMLElement { ): WebGL2RenderingContext | null; getContext(contextId: string, options?: any): RenderingContext | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toBlob) */ - toBlob(callback: BlobCallback, type?: string, quality?: any): void; + toBlob(callback: BlobCallback, type?: string, quality?: number): void; /** * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element. * @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toDataURL) */ - toDataURL(type?: string, quality?: any): string; + toDataURL(type?: string, quality?: number): string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/transferControlToOffscreen) */ transferControlToOffscreen(): OffscreenCanvas; addEventListener( @@ -11545,7 +11754,7 @@ declare var HTMLDataListElement: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement) */ interface HTMLDetailsElement extends HTMLElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/open) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/name) */ name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/open) */ open: boolean; @@ -11778,6 +11987,7 @@ interface HTMLElement title: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/translate) */ translate: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/writingSuggestions) */ writingSuggestions: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attachInternals) */ attachInternals(): ElementInternals; @@ -11788,7 +11998,7 @@ interface HTMLElement /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/showPopover) */ showPopover(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/togglePopover) */ - togglePopover(force?: boolean): boolean; + togglePopover(options?: boolean): boolean; addEventListener( type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, @@ -11841,6 +12051,7 @@ interface HTMLEmbedElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/src) */ src: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/type) */ type: string; /** * Sets or retrieves the width of the object. @@ -11848,6 +12059,7 @@ interface HTMLEmbedElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/width) */ width: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/getSVGDocument) */ getSVGDocument(): Document | null; addEventListener( type: K, @@ -12057,7 +12269,11 @@ interface HTMLFormElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/action) */ action: string; - /** Specifies whether autocomplete is applied to an editable text field. */ + /** + * Specifies whether autocomplete is applied to an editable text field. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/autocomplete) + */ autocomplete: AutoFillBase; /** * Retrieves a collection, in source order, of all controls in a given form. @@ -12095,10 +12311,15 @@ interface HTMLFormElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/name) */ name: string; - /** Designates a form that is not validated when submitted. */ + /** + * Designates a form that is not validated when submitted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/noValidate) + */ noValidate: boolean; rel: string; - readonly relList: DOMTokenList; + get relList(): DOMTokenList; + set relList(value: string); /** * Sets or retrieves the window or frame at which to target content. * @@ -12608,7 +12829,8 @@ interface HTMLIFrameElement extends HTMLElement { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/referrerPolicy) */ referrerPolicy: ReferrerPolicy; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/sandbox) */ - readonly sandbox: DOMTokenList; + get sandbox(): DOMTokenList; + set sandbox(value: string); /** * Sets or retrieves whether the frame can be scrolled. * @deprecated @@ -12632,6 +12854,7 @@ interface HTMLIFrameElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/width) */ width: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIframeElement/getSVGDocument) */ getSVGDocument(): Document | null; addEventListener( type: K, @@ -12699,7 +12922,7 @@ interface HTMLImageElement extends HTMLElement { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decoding) */ decoding: "async" | "sync" | "auto"; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/fetchPriority) */ - fetchPriority: string; + fetchPriority: "high" | "low" | "auto"; /** * Sets or retrieves the height of the object. * @@ -12881,15 +13104,35 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/form) */ readonly form: HTMLFormElement | null; - /** Overrides the action attribute (where the data on a form is sent) on the parent form element. */ + /** + * Overrides the action attribute (where the data on a form is sent) on the parent form element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formAction) + */ formAction: string; - /** Used to override the encoding (formEnctype attribute) specified on the form element. */ + /** + * Used to override the encoding (formEnctype attribute) specified on the form element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formEnctype) + */ formEnctype: string; - /** Overrides the submit method attribute previously specified on a form element. */ + /** + * Overrides the submit method attribute previously specified on a form element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formMethod) + */ formMethod: string; - /** Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. */ + /** + * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formNoValidate) + */ formNoValidate: boolean; - /** Overrides the target attribute on a form element. */ + /** + * Overrides the target attribute on a form element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formTarget) + */ formTarget: string; /** * Sets or retrieves the height of the object. @@ -13141,7 +13384,11 @@ declare var HTMLInputElement: { interface HTMLLIElement extends HTMLElement { /** @deprecated */ type: string; - /** Sets or retrieves the value of a list item. */ + /** + * Sets or retrieves the value of a list item. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLIElement/value) + */ value: number; addEventListener( type: K, @@ -13270,6 +13517,9 @@ declare var HTMLLegendElement: { interface HTMLLinkElement extends HTMLElement, LinkStyle { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/as) */ as: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/blocking) */ + get blocking(): DOMTokenList; + set blocking(value: string); /** * Sets or retrieves the character set used to encode the object. * @deprecated @@ -13280,7 +13530,7 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/disabled) */ disabled: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/fetchPriority) */ - fetchPriority: string; + fetchPriority: "high" | "low" | "auto"; /** * Sets or retrieves a destination URL or an anchor point. * @@ -13312,13 +13562,16 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle { */ rel: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/relList) */ - readonly relList: DOMTokenList; + get relList(): DOMTokenList; + set relList(value: string); /** * Sets or retrieves the relationship between the object and the destination of the link. * @deprecated */ rev: string; - readonly sizes: DOMTokenList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sizes) */ + get sizes(): DOMTokenList; + set sizes(value: string); /** * Sets or retrieves the window or frame at which to target content. * @deprecated @@ -13562,6 +13815,7 @@ interface HTMLMediaElement extends HTMLElement { onencrypted: | ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waitingforkey_event) */ onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null; /** * Gets a flag that specifies whether playback is paused. @@ -13575,7 +13829,11 @@ interface HTMLMediaElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playbackRate) */ playbackRate: number; - /** Gets TimeRanges for the current media resource that has been played. */ + /** + * Gets TimeRanges for the current media resource that has been played. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/played) + */ readonly played: TimeRanges; /** * Gets or sets a value indicating what data should be preloaded, if any. @@ -13595,7 +13853,11 @@ interface HTMLMediaElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seekable) */ readonly seekable: TimeRanges; - /** Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource. */ + /** + * Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking) + */ readonly seeking: boolean; /** * Available only in secure contexts. @@ -13619,6 +13881,7 @@ interface HTMLMediaElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volume) */ volume: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/addTextTrack) */ addTextTrack( kind: TextTrackKind, label?: string, @@ -13851,9 +14114,17 @@ declare var HTMLMeterElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement) */ interface HTMLModElement extends HTMLElement { - /** Sets or retrieves reference information about the object. */ + /** + * Sets or retrieves reference information about the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement/cite) + */ cite: string; - /** Sets or retrieves the date and time of a modification to the object. */ + /** + * Sets or retrieves the date and time of a modification to the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement/dateTime) + */ dateTime: string; addEventListener( type: K, @@ -14043,6 +14314,7 @@ interface HTMLObjectElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/checkValidity) */ checkValidity(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/getSVGDocument) */ getSVGDocument(): Document | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/reportValidity) */ reportValidity(): boolean; @@ -14210,12 +14482,16 @@ interface HTMLOptionsCollection extends HTMLCollectionOf { * When set to a smaller number, truncates the number of option elements in the corresponding container. * * When set to a greater number, adds new blank option elements to that container. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/length) */ length: number; /** * Returns the index of the first selected item, if any, or −1 if there is no selected item. * * Can be set, to change the selection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/selectedIndex) */ selectedIndex: number; /** @@ -14226,12 +14502,18 @@ interface HTMLOptionsCollection extends HTMLCollectionOf { * If before is omitted, null, or a number out of range, then element will be added at the end of the list. * * This method will throw a "HierarchyRequestError" DOMException if element is an ancestor of the element into which it is to be inserted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/add) */ add( element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null, ): void; - /** Removes the item with index index from the collection. */ + /** + * Removes the item with index index from the collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/remove) + */ remove(index: number): void; } @@ -14261,10 +14543,13 @@ interface HTMLOrSVGElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement) */ interface HTMLOutputElement extends HTMLElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/defaultValue) */ defaultValue: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/form) */ readonly form: HTMLFormElement | null; - readonly htmlFor: DOMTokenList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/htmlFor) */ + get htmlFor(): DOMTokenList; + set htmlFor(value: string); /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/labels) */ readonly labels: NodeListOf; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/name) */ @@ -14545,7 +14830,11 @@ declare var HTMLProgressElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLQuoteElement) */ interface HTMLQuoteElement extends HTMLElement { - /** Sets or retrieves reference information about the object. */ + /** + * Sets or retrieves reference information about the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLQuoteElement/cite) + */ cite: string; addEventListener( type: K, @@ -14582,6 +14871,9 @@ declare var HTMLQuoteElement: { interface HTMLScriptElement extends HTMLElement { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/async) */ async: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/blocking) */ + get blocking(): DOMTokenList; + set blocking(value: string); /** * Sets or retrieves the character set used to encode the object. * @deprecated @@ -14601,7 +14893,7 @@ interface HTMLScriptElement extends HTMLElement { */ event: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/fetchPriority) */ - fetchPriority: string; + fetchPriority: "high" | "low" | "auto"; /** * Sets or retrieves the object that is bound to the event script. * @deprecated @@ -14666,6 +14958,7 @@ declare var HTMLScriptElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement) */ interface HTMLSelectElement extends HTMLElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/autocomplete) */ autocomplete: AutoFill; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/disabled) */ disabled: boolean; @@ -14875,13 +15168,27 @@ declare var HTMLSlotElement: { interface HTMLSourceElement extends HTMLElement { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/height) */ height: number; - /** Gets or sets the intended media type of the media source. */ + /** + * Gets or sets the intended media type of the media source. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/media) + */ media: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/sizes) */ sizes: string; - /** The address or URL of the a media resource that is to be considered. */ + /** + * The address or URL of the a media resource that is to be considered. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/src) + */ src: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/srcset) */ srcset: string; - /** Gets or sets the MIME type of a media resource. */ + /** + * Gets or sets the MIME type of a media resource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/type) + */ type: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/width) */ width: number; @@ -14951,6 +15258,9 @@ declare var HTMLSpanElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement) */ interface HTMLStyleElement extends HTMLElement, LinkStyle { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/blocking) */ + get blocking(): DOMTokenList; + set blocking(value: string); /** * Enables or disables the style sheet. * @@ -15972,14 +16282,23 @@ declare var HTMLTitleElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement) */ interface HTMLTrackElement extends HTMLElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/default) */ default: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/kind) */ kind: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/label) */ label: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/readyState) */ readonly readyState: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/src) */ src: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/srclang) */ srclang: string; - /** Returns the TextTrack object corresponding to the text track of the track element. */ + /** + * Returns the TextTrack object corresponding to the text track of the track element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/track) + */ readonly track: TextTrack; readonly NONE: 0; readonly LOADING: 1; @@ -17211,6 +17530,70 @@ declare var ImageData: { ): ImageData; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder) + */ +interface ImageDecoder { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/complete) */ + readonly complete: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/completed) */ + readonly completed: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/tracks) */ + readonly tracks: ImageTrackList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/type) */ + readonly type: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/close) */ + close(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/decode) */ + decode(options?: ImageDecodeOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/reset) */ + reset(): void; +} + +declare var ImageDecoder: { + prototype: ImageDecoder; + new (init: ImageDecoderInit): ImageDecoder; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/isTypeSupported_static) */ + isTypeSupported(type: string): Promise; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack) */ +interface ImageTrack { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/animated) */ + readonly animated: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/frameCount) */ + readonly frameCount: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/repetitionCount) */ + readonly repetitionCount: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/selected) */ + selected: boolean; +} + +declare var ImageTrack: { + prototype: ImageTrack; + new (): ImageTrack; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList) */ +interface ImageTrackList { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/ready) */ + readonly ready: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedIndex) */ + readonly selectedIndex: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedTrack) */ + readonly selectedTrack: ImageTrack | null; + [index: number]: ImageTrack; +} + +declare var ImageTrackList: { + prototype: ImageTrackList; + new (): ImageTrackList; +}; + interface ImportMeta { url: string; resolve(specifier: string): string; @@ -18712,7 +19095,39 @@ declare var MessageEvent: { new (type: string, eventInitDict?: MessageEventInit): MessageEvent; }; -interface MessagePortEventMap { +interface MessageEventTargetEventMap { + message: MessageEvent; + messageerror: MessageEvent; +} + +interface MessageEventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */ + onmessage: ((this: T, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */ + onmessageerror: ((this: T, ev: MessageEvent) => any) | null; + addEventListener( + type: K, + listener: (this: T, ev: MessageEventTargetEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: T, ev: MessageEventTargetEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; +} + +interface MessagePortEventMap extends MessageEventTargetEventMap { message: MessageEvent; messageerror: MessageEvent; } @@ -18722,11 +19137,7 @@ interface MessagePortEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort) */ -interface MessagePort extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/message_event) */ - onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/messageerror_event) */ - onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null; +interface MessagePort extends EventTarget, MessageEventTarget { /** * Disconnects the port, so that it is no longer active. * @@ -19041,6 +19452,74 @@ declare var NamedNodeMap: { new (): NamedNodeMap; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation) */ +interface NavigationActivation { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/entry) */ + readonly entry: NavigationHistoryEntry; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/from) */ + readonly from: NavigationHistoryEntry | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/navigationType) */ + readonly navigationType: NavigationType; +} + +declare var NavigationActivation: { + prototype: NavigationActivation; + new (): NavigationActivation; +}; + +interface NavigationHistoryEntryEventMap { + dispose: Event; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry) */ +interface NavigationHistoryEntry extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/id) */ + readonly id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/index) */ + readonly index: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/key) */ + readonly key: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/dispose_event) */ + ondispose: ((this: NavigationHistoryEntry, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/sameDocument) */ + readonly sameDocument: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/url) */ + readonly url: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/getState) */ + getState(): any; + addEventListener( + type: K, + listener: ( + this: NavigationHistoryEntry, + ev: NavigationHistoryEntryEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: NavigationHistoryEntry, + ev: NavigationHistoryEntryEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; +} + +declare var NavigationHistoryEntry: { + prototype: NavigationHistoryEntry; + new (): NavigationHistoryEntry; +}; + /** * Available only in secure contexts. * @@ -19379,7 +19858,7 @@ interface Node extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/cloneNode) */ - cloneNode(deep?: boolean): Node; + cloneNode(subtree?: boolean): Node; /** * Returns a bitmask indicating the position of other relative to node. * @@ -20048,6 +20527,30 @@ declare var OverconstrainedError: { new (constraint: string, message?: string): OverconstrainedError; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageRevealEvent) */ +interface PageRevealEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageRevealEvent/viewTransition) */ + readonly viewTransition: ViewTransition | null; +} + +declare var PageRevealEvent: { + prototype: PageRevealEvent; + new (type: string, eventInitDict?: PageRevealEventInit): PageRevealEvent; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent) */ +interface PageSwapEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent/activation) */ + readonly activation: NavigationActivation | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent/viewTransition) */ + readonly viewTransition: ViewTransition | null; +} + +declare var PageSwapEvent: { + prototype: PageSwapEvent; + new (type: string, eventInitDict?: PageSwapEventInit): PageSwapEvent; +}; + /** * The PageTransitionEvent is fired when a document is being loaded or unloaded. * @@ -21191,6 +21694,7 @@ declare var PointerEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent) */ interface PopStateEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent/hasUAVisualTransition) */ readonly hasUAVisualTransition: boolean; /** * Returns a copy of the information that was provided to pushState() or replaceState(). @@ -21285,6 +21789,7 @@ interface PublicKeyCredential extends Credential { declare var PublicKeyCredential: { prototype: PublicKeyCredential; new (): PublicKeyCredential; + getClientCapabilities(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isConditionalMediationAvailable_static) */ isConditionalMediationAvailable(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable_static) */ @@ -22362,7 +22867,7 @@ declare var ReadableStreamDefaultReader: { interface ReadableStreamGenericReader { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/closed) */ - readonly closed: Promise; + readonly closed: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/cancel) */ cancel(reason?: any): Promise; } @@ -22499,7 +23004,11 @@ interface Request extends Body { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity) */ readonly integrity: string; - /** Returns a boolean indicating whether or not request can outlive the global in which it was created. */ + /** + * Returns a boolean indicating whether or not request can outlive the global in which it was created. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive) + */ readonly keepalive: boolean; /** * Returns request's HTTP method, which is "GET" by default. @@ -22641,7 +23150,8 @@ declare var Response: { */ interface SVGAElement extends SVGGraphicsElement, SVGURIReference { rel: string; - readonly relList: DOMTokenList; + get relList(): DOMTokenList; + set relList(value: string); /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/target) */ readonly target: SVGAnimatedString; addEventListener( @@ -22677,11 +23187,17 @@ declare var SVGAElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle) */ interface SVGAngle { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/unitType) */ readonly unitType: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/value) */ value: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/valueAsString) */ valueAsString: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/valueInSpecifiedUnits) */ valueInSpecifiedUnits: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/convertToSpecifiedUnits) */ convertToSpecifiedUnits(unitType: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/newValueSpecifiedUnits) */ newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void; readonly SVG_ANGLETYPE_UNKNOWN: 0; readonly SVG_ANGLETYPE_UNSPECIFIED: 1; @@ -22799,7 +23315,9 @@ declare var SVGAnimateTransformElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedAngle) */ interface SVGAnimatedAngle { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedAngle/animVal) */ readonly animVal: SVGAngle; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedAngle/baseVal) */ readonly baseVal: SVGAngle; } @@ -22814,7 +23332,9 @@ declare var SVGAnimatedAngle: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedBoolean) */ interface SVGAnimatedBoolean { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedBoolean/animVal) */ readonly animVal: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedBoolean/baseVal) */ baseVal: boolean; } @@ -22846,7 +23366,9 @@ declare var SVGAnimatedEnumeration: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedInteger) */ interface SVGAnimatedInteger { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedInteger/animVal) */ readonly animVal: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedInteger/baseVal) */ baseVal: number; } @@ -22878,7 +23400,9 @@ declare var SVGAnimatedLength: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLengthList) */ interface SVGAnimatedLengthList { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLengthList/animVal) */ readonly animVal: SVGLengthList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLengthList/baseVal) */ readonly baseVal: SVGLengthList; } @@ -22893,7 +23417,9 @@ declare var SVGAnimatedLengthList: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumber) */ interface SVGAnimatedNumber { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumber/animVal) */ readonly animVal: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumber/baseVal) */ baseVal: number; } @@ -22908,7 +23434,9 @@ declare var SVGAnimatedNumber: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumberList) */ interface SVGAnimatedNumberList { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumberList/animVal) */ readonly animVal: SVGNumberList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumberList/baseVal) */ readonly baseVal: SVGNumberList; } @@ -22918,7 +23446,9 @@ declare var SVGAnimatedNumberList: { }; interface SVGAnimatedPoints { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolygonElement/animatedPoints) */ readonly animatedPoints: SVGPointList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolygonElement/points) */ readonly points: SVGPointList; } @@ -22928,7 +23458,9 @@ interface SVGAnimatedPoints { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedPreserveAspectRatio) */ interface SVGAnimatedPreserveAspectRatio { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedPreserveAspectRatio/animVal) */ readonly animVal: SVGPreserveAspectRatio; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedPreserveAspectRatio/baseVal) */ readonly baseVal: SVGPreserveAspectRatio; } @@ -22943,7 +23475,9 @@ declare var SVGAnimatedPreserveAspectRatio: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect) */ interface SVGAnimatedRect { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect/animVal) */ readonly animVal: DOMRectReadOnly; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect/baseVal) */ readonly baseVal: DOMRect; } @@ -22975,7 +23509,9 @@ declare var SVGAnimatedString: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedTransformList) */ interface SVGAnimatedTransformList { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedTransformList/animVal) */ readonly animVal: SVGTransformList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedTransformList/baseVal) */ readonly baseVal: SVGTransformList; } @@ -22988,12 +23524,19 @@ declare var SVGAnimatedTransformList: { interface SVGAnimationElement extends SVGElement, SVGTests { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/targetElement) */ readonly targetElement: SVGElement | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/beginElement) */ beginElement(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/beginElementAt) */ beginElementAt(offset: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/endElement) */ endElement(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/endElementAt) */ endElementAt(offset: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/getCurrentTime) */ getCurrentTime(): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/getSimpleDuration) */ getSimpleDuration(): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/getStartTime) */ getStartTime(): number; addEventListener( type: K, @@ -23104,12 +23647,19 @@ declare var SVGClipPathElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement) */ interface SVGComponentTransferFunctionElement extends SVGElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/amplitude) */ readonly amplitude: SVGAnimatedNumber; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/exponent) */ readonly exponent: SVGAnimatedNumber; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/intercept) */ readonly intercept: SVGAnimatedNumber; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/offset) */ readonly offset: SVGAnimatedNumber; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/slope) */ readonly slope: SVGAnimatedNumber; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/tableValues) */ readonly tableValues: SVGAnimatedNumberList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/type) */ readonly type: SVGAnimatedEnumeration; readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0; readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1; @@ -23238,7 +23788,9 @@ interface SVGElement HTMLOrSVGElement { /** @deprecated */ readonly className: any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/ownerSVGElement) */ readonly ownerSVGElement: SVGSVGElement | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/viewportElement) */ readonly viewportElement: SVGElement | null; addEventListener( type: K, @@ -23384,8 +23936,11 @@ declare var SVGFEBlendElement: { interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/in1) */ readonly in1: SVGAnimatedString; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/type) */ readonly type: SVGAnimatedEnumeration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/values) */ readonly values: SVGAnimatedNumberList; readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0; readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1; @@ -23591,10 +24146,15 @@ declare var SVGFEConvolveMatrixElement: { interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement/diffuseConstant) */ readonly diffuseConstant: SVGAnimatedNumber; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement/in1) */ readonly in1: SVGAnimatedString; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement/kernelUnitLengthX) */ readonly kernelUnitLengthX: SVGAnimatedNumber; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement/kernelUnitLengthY) */ readonly kernelUnitLengthY: SVGAnimatedNumber; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement/surfaceScale) */ readonly surfaceScale: SVGAnimatedNumber; addEventListener( type: K, @@ -23691,7 +24251,9 @@ declare var SVGFEDisplacementMapElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDistantLightElement) */ interface SVGFEDistantLightElement extends SVGElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDistantLightElement/azimuth) */ readonly azimuth: SVGAnimatedNumber; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDistantLightElement/elevation) */ readonly elevation: SVGAnimatedNumber; addEventListener( type: K, @@ -23938,9 +24500,13 @@ declare var SVGFEFuncRElement: { interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement/in1) */ readonly in1: SVGAnimatedString; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement/stdDeviationX) */ readonly stdDeviationX: SVGAnimatedNumber; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement/stdDeviationY) */ readonly stdDeviationY: SVGAnimatedNumber; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement/setStdDeviation) */ setStdDeviation(stdDeviationX: number, stdDeviationY: number): void; addEventListener( type: K, @@ -24053,6 +24619,7 @@ declare var SVGFEMergeElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMergeNodeElement) */ interface SVGFEMergeNodeElement extends SVGElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMergeNodeElement/in1) */ readonly in1: SVGAnimatedString; addEventListener( type: K, @@ -24089,9 +24656,13 @@ declare var SVGFEMergeNodeElement: { interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement/in1) */ readonly in1: SVGAnimatedString; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement/operator) */ readonly operator: SVGAnimatedEnumeration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement/radiusX) */ readonly radiusX: SVGAnimatedNumber; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement/radiusY) */ readonly radiusY: SVGAnimatedNumber; readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0; readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1; @@ -24170,8 +24741,11 @@ declare var SVGFEOffsetElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEPointLightElement) */ interface SVGFEPointLightElement extends SVGElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEPointLightElement/x) */ readonly x: SVGAnimatedNumber; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEPointLightElement/y) */ readonly y: SVGAnimatedNumber; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEPointLightElement/z) */ readonly z: SVGAnimatedNumber; addEventListener( type: K, @@ -24208,11 +24782,15 @@ declare var SVGFEPointLightElement: { interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/in1) */ readonly in1: SVGAnimatedString; readonly kernelUnitLengthX: SVGAnimatedNumber; readonly kernelUnitLengthY: SVGAnimatedNumber; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/specularConstant) */ readonly specularConstant: SVGAnimatedNumber; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/specularExponent) */ readonly specularExponent: SVGAnimatedNumber; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/surfaceScale) */ readonly surfaceScale: SVGAnimatedNumber; addEventListener( type: K, @@ -24258,8 +24836,11 @@ interface SVGFESpotLightElement extends SVGElement { readonly pointsAtY: SVGAnimatedNumber; readonly pointsAtZ: SVGAnimatedNumber; readonly specularExponent: SVGAnimatedNumber; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/x) */ readonly x: SVGAnimatedNumber; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/y) */ readonly y: SVGAnimatedNumber; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/z) */ readonly z: SVGAnimatedNumber; addEventListener( type: K, @@ -24383,11 +24964,17 @@ declare var SVGFETurbulenceElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement) */ interface SVGFilterElement extends SVGElement, SVGURIReference { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/filterUnits) */ readonly filterUnits: SVGAnimatedEnumeration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/height) */ readonly height: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/primitiveUnits) */ readonly primitiveUnits: SVGAnimatedEnumeration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/width) */ readonly width: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/x) */ readonly x: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/y) */ readonly y: SVGAnimatedLength; addEventListener( type: K, @@ -24546,8 +25133,11 @@ declare var SVGGeometryElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement) */ interface SVGGradientElement extends SVGElement, SVGURIReference { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement/gradientTransform) */ readonly gradientTransform: SVGAnimatedTransformList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement/gradientUnits) */ readonly gradientUnits: SVGAnimatedEnumeration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement/spreadMethod) */ readonly spreadMethod: SVGAnimatedEnumeration; readonly SVG_SPREADMETHOD_UNKNOWN: 0; readonly SVG_SPREADMETHOD_PAD: 1; @@ -24745,9 +25335,13 @@ declare var SVGLengthList: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement) */ interface SVGLineElement extends SVGGeometryElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement/x1) */ readonly x1: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement/x2) */ readonly x2: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement/y1) */ readonly y1: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement/y2) */ readonly y2: SVGAnimatedLength; addEventListener( type: K, @@ -24782,9 +25376,13 @@ declare var SVGLineElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement) */ interface SVGLinearGradientElement extends SVGGradientElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement/x1) */ readonly x1: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement/x2) */ readonly x2: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement/y1) */ readonly y1: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement/y2) */ readonly y2: SVGAnimatedLength; addEventListener( type: K, @@ -25005,14 +25603,23 @@ declare var SVGNumber: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList) */ interface SVGNumberList { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/length) */ readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/numberOfItems) */ readonly numberOfItems: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/appendItem) */ appendItem(newItem: SVGNumber): SVGNumber; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/clear) */ clear(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/getItem) */ getItem(index: number): SVGNumber; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/initialize) */ initialize(newItem: SVGNumber): SVGNumber; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/insertItemBefore) */ insertItemBefore(newItem: SVGNumber, index: number): SVGNumber; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/removeItem) */ removeItem(index: number): SVGNumber; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/replaceItem) */ replaceItem(newItem: SVGNumber, index: number): SVGNumber; [index: number]: SVGNumber; } @@ -25065,8 +25672,11 @@ interface SVGPatternElement SVGFitToViewBox, SVGURIReference { readonly height: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement/patternContentUnits) */ readonly patternContentUnits: SVGAnimatedEnumeration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement/patternTransform) */ readonly patternTransform: SVGAnimatedTransformList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement/patternUnits) */ readonly patternUnits: SVGAnimatedEnumeration; readonly width: SVGAnimatedLength; readonly x: SVGAnimatedLength; @@ -25241,11 +25851,16 @@ declare var SVGPreserveAspectRatio: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement) */ interface SVGRadialGradientElement extends SVGGradientElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/cx) */ readonly cx: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/cy) */ readonly cy: SVGAnimatedLength; readonly fr: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/fx) */ readonly fx: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/fy) */ readonly fy: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/r) */ readonly r: SVGAnimatedLength; addEventListener( type: K, @@ -25286,11 +25901,17 @@ declare var SVGRadialGradientElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement) */ interface SVGRectElement extends SVGGeometryElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/height) */ readonly height: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/rx) */ readonly rx: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/ry) */ readonly ry: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/width) */ readonly width: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/x) */ readonly x: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/y) */ readonly y: SVGAnimatedLength; addEventListener( type: K, @@ -25489,6 +26110,7 @@ declare var SVGSetElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStopElement) */ interface SVGStopElement extends SVGElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStopElement/offset) */ readonly offset: SVGAnimatedNumber; addEventListener( type: K, @@ -25684,7 +26306,9 @@ declare var SVGTSpanElement: { }; interface SVGTests { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/requiredExtensions) */ readonly requiredExtensions: SVGStringList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/systemLanguage) */ readonly systemLanguage: SVGStringList; } @@ -25694,15 +26318,25 @@ interface SVGTests { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement) */ interface SVGTextContentElement extends SVGGraphicsElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/lengthAdjust) */ readonly lengthAdjust: SVGAnimatedEnumeration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/textLength) */ readonly textLength: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getCharNumAtPosition) */ getCharNumAtPosition(point?: DOMPointInit): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getComputedTextLength) */ getComputedTextLength(): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getEndPositionOfChar) */ getEndPositionOfChar(charnum: number): DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getExtentOfChar) */ getExtentOfChar(charnum: number): DOMRect; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getNumberOfChars) */ getNumberOfChars(): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getRotationOfChar) */ getRotationOfChar(charnum: number): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getStartPositionOfChar) */ getStartPositionOfChar(charnum: number): DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getSubStringLength) */ getSubStringLength(charnum: number, nchars: number): number; /** @deprecated */ selectSubString(charnum: number, nchars: number): void; @@ -25778,8 +26412,11 @@ declare var SVGTextElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement) */ interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement/method) */ readonly method: SVGAnimatedEnumeration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement/spacing) */ readonly spacing: SVGAnimatedEnumeration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement/startOffset) */ readonly startOffset: SVGAnimatedLength; readonly TEXTPATH_METHODTYPE_UNKNOWN: 0; readonly TEXTPATH_METHODTYPE_ALIGN: 1; @@ -25903,14 +26540,23 @@ declare var SVGTitleElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform) */ interface SVGTransform { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/angle) */ readonly angle: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/matrix) */ readonly matrix: DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/type) */ readonly type: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setMatrix) */ setMatrix(matrix?: DOMMatrix2DInit): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setRotate) */ setRotate(angle: number, cx: number, cy: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setScale) */ setScale(sx: number, sy: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setSkewX) */ setSkewX(angle: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setSkewY) */ setSkewY(angle: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setTranslate) */ setTranslate(tx: number, ty: number): void; readonly SVG_TRANSFORM_UNKNOWN: 0; readonly SVG_TRANSFORM_MATRIX: 1; @@ -25939,16 +26585,27 @@ declare var SVGTransform: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList) */ interface SVGTransformList { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/length) */ readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/numberOfItems) */ readonly numberOfItems: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/appendItem) */ appendItem(newItem: SVGTransform): SVGTransform; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/clear) */ clear(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/consolidate) */ consolidate(): SVGTransform | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/createSVGTransformFromMatrix) */ createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/getItem) */ getItem(index: number): SVGTransform; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/initialize) */ initialize(newItem: SVGTransform): SVGTransform; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/insertItemBefore) */ insertItemBefore(newItem: SVGTransform, index: number): SVGTransform; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/removeItem) */ removeItem(index: number): SVGTransform; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/replaceItem) */ replaceItem(newItem: SVGTransform, index: number): SVGTransform; [index: number]: SVGTransform; } @@ -25959,6 +26616,7 @@ declare var SVGTransformList: { }; interface SVGURIReference { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/href) */ readonly href: SVGAnimatedString; } @@ -26258,7 +26916,7 @@ interface Selection { containsNode(node: Node, allowPartialContainment?: boolean): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/deleteFromDocument) */ deleteFromDocument(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeAllRanges) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/empty) */ empty(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/extend) */ extend(node: Node, offset?: number): void; @@ -26279,7 +26937,7 @@ interface Selection { focusNode: Node, focusOffset: number, ): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapse) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/setPosition) */ setPosition(node: Node | null, offset?: number): void; toString(): string; } @@ -27149,7 +27807,8 @@ interface StyleSheet { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/href) */ readonly href: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/media) */ - readonly media: MediaList; + get media(): MediaList; + set media(mediaText: string); /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/ownerNode) */ readonly ownerNode: Element | ProcessingInstruction | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/parentStyleSheet) */ @@ -27271,7 +27930,7 @@ interface SubtleCrypto { ): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */ generateKey( - algorithm: "Ed25519", + algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">, ): Promise; @@ -28570,11 +29229,12 @@ declare var VideoPlaybackQuality: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition) */ interface ViewTransition { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/finished) */ - readonly finished: Promise; + readonly finished: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/ready) */ - readonly ready: Promise; + readonly ready: Promise; + types: ViewTransitionTypeSet; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/updateCallbackDone) */ - readonly updateCallbackDone: Promise; + readonly updateCallbackDone: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/skipTransition) */ skipTransition(): void; } @@ -28584,6 +29244,22 @@ declare var ViewTransition: { new (): ViewTransition; }; +interface ViewTransitionTypeSet { + forEach( + callbackfn: ( + value: string, + key: string, + parent: ViewTransitionTypeSet, + ) => void, + thisArg?: any, + ): void; +} + +declare var ViewTransitionTypeSet: { + prototype: ViewTransitionTypeSet; + new (): ViewTransitionTypeSet; +}; + interface VisualViewportEventMap { resize: Event; scroll: Event; @@ -29561,7 +30237,7 @@ interface WebGL2RenderingContextBase { ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) */ clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D) */ compressedTexImage3D( target: GLenum, level: GLint, @@ -30295,7 +30971,7 @@ interface WebGL2RenderingContextBase { } interface WebGL2RenderingContextOverloads { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bufferData) */ bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void; bufferData( target: GLenum, @@ -30309,7 +30985,7 @@ interface WebGL2RenderingContextOverloads { srcOffset: number, length?: GLuint, ): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bufferSubData) */ bufferSubData( target: GLenum, dstByteOffset: GLintptr, @@ -30562,7 +31238,7 @@ interface WebGL2RenderingContextOverloads { srcOffset?: number, srcLength?: GLuint, ): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ uniformMatrix2fv( location: WebGLUniformLocation | null, transpose: GLboolean, @@ -30992,12 +31668,14 @@ declare var WebGLRenderingContext: { interface WebGLRenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/canvas) */ readonly canvas: HTMLCanvasElement | OffscreenCanvas; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferColorSpace) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawingBufferColorSpace) */ drawingBufferColorSpace: PredefinedColorSpace; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight) */ readonly drawingBufferHeight: GLsizei; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferWidth) */ readonly drawingBufferWidth: GLsizei; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/unpackColorSpace) */ + unpackColorSpace: PredefinedColorSpace; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/activeTexture) */ activeTexture(texture: GLenum): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/attachShader) */ @@ -31316,6 +31994,7 @@ interface WebGLRenderingContextBase { isShader(shader: WebGLShader | null): GLboolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isTexture) */ isTexture(texture: WebGLTexture | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/lineWidth) */ lineWidth(width: GLfloat): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/linkProgram) */ linkProgram(program: WebGLProgram): void; @@ -32075,7 +32754,7 @@ interface WebTransport { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */ - readonly ready: Promise; + readonly ready: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close) */ close(closeInfo?: WebTransportCloseInfo): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ @@ -32254,7 +32933,7 @@ interface Window readonly length: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/location) */ get location(): Location; - set location(href: string | Location); + set location(href: string); /** * Returns true if the location bar is visible; otherwise, returns false. * @@ -32311,17 +32990,9 @@ interface Window readonly outerHeight: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth) */ readonly outerWidth: number; - /** - * @deprecated This is a legacy alias of `scrollX`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) - */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */ readonly pageXOffset: number; - /** - * @deprecated This is a legacy alias of `scrollY`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) - */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */ readonly pageYOffset: number; /** * Refers to either the parent WindowProxy, or itself. @@ -32528,7 +33199,9 @@ interface WindowEventHandlersEventMap { offline: Event; online: Event; pagehide: PageTransitionEvent; + pagereveal: Event; pageshow: PageTransitionEvent; + pageswap: Event; popstate: PopStateEvent; rejectionhandled: PromiseRejectionEvent; storage: StorageEvent; @@ -32571,10 +33244,14 @@ interface WindowEventHandlers { onpagehide: | ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagereveal_event) */ + onpagereveal: ((this: WindowEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageshow_event) */ onpageshow: | ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageswap_event) */ + onpageswap: ((this: WindowEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/popstate_event) */ onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/rejectionhandled_event) */ @@ -32649,11 +33326,11 @@ interface WindowOrWorkerGlobalScope { atob(data: string): string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */ btoa(data: string): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) */ clearInterval(id: number | undefined): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */ clearTimeout(id: number | undefined): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) */ createImageBitmap( image: ImageBitmapSource, options?: ImageBitmapOptions, @@ -32668,23 +33345,23 @@ interface WindowOrWorkerGlobalScope { ): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */ fetch(input: RequestInfo | URL, init?: RequestInit): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */ queueMicrotask(callback: VoidFunction): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */ reportError(e: any): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */ setInterval( handler: TimerHandler, timeout?: number, ...arguments: any[] ): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */ setTimeout( handler: TimerHandler, timeout?: number, ...arguments: any[] ): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) */ structuredClone(value: T, options?: StructuredSerializeOptions): T; } @@ -32693,21 +33370,19 @@ interface WindowSessionStorage { readonly sessionStorage: Storage; } -interface WorkerEventMap extends AbstractWorkerEventMap { - message: MessageEvent; - messageerror: MessageEvent; -} +interface WorkerEventMap + extends AbstractWorkerEventMap, + MessageEventTargetEventMap {} /** * This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker) */ -interface Worker extends EventTarget, AbstractWorker { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/message_event) */ - onmessage: ((this: Worker, ev: MessageEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/messageerror_event) */ - onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null; +interface Worker + extends EventTarget, + AbstractWorker, + MessageEventTarget { /** * Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned. * @@ -32819,11 +33494,11 @@ declare var WritableStreamDefaultController: { */ interface WritableStreamDefaultWriter { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed) */ - readonly closed: Promise; + readonly closed: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize) */ readonly desiredSize: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready) */ - readonly ready: Promise; + readonly ready: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort) */ abort(reason?: any): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close) */ @@ -34194,17 +34869,9 @@ declare var orientation: number; declare var outerHeight: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth) */ declare var outerWidth: number; -/** - * @deprecated This is a legacy alias of `scrollX`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) - */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */ declare var pageXOffset: number; -/** - * @deprecated This is a legacy alias of `scrollY`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) - */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */ declare var pageYOffset: number; /** * Refers to either the parent WindowProxy, or itself. @@ -34418,7 +35085,7 @@ declare var onbeforetoggle: ((this: Window, ev: Event) => any) | null; * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */ declare var onblur: ((this: Window, ev: FocusEvent) => any) | null; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/cancel_event) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ declare var oncancel: ((this: Window, ev: Event) => any) | null; /** * Occurs when playback is possible, but would require further buffering. @@ -34445,7 +35112,7 @@ declare var onchange: ((this: Window, ev: Event) => any) | null; declare var onclick: ((this: Window, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */ declare var onclose: ((this: Window, ev: Event) => any) | null; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/webglcontextlost_event) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */ declare var oncontextlost: ((this: Window, ev: Event) => any) | null; /** * Fires when the user clicks the right mouse button in the client area, opening the context menu. @@ -34776,7 +35443,7 @@ declare var onsuspend: ((this: Window, ev: Event) => any) | null; * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event) */ declare var ontimeupdate: ((this: Window, ev: Event) => any) | null; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/toggle_event) */ declare var ontoggle: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */ declare var ontouchcancel: @@ -34886,8 +35553,12 @@ declare var onoffline: ((this: Window, ev: Event) => any) | null; declare var ononline: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagehide_event) */ declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagereveal_event) */ +declare var onpagereveal: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageshow_event) */ declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageswap_event) */ +declare var onpageswap: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/popstate_event) */ declare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/rejectionhandled_event) */ @@ -34930,11 +35601,11 @@ declare var performance: Performance; declare function atob(data: string): string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */ declare function btoa(data: string): string; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) */ declare function clearInterval(id: number | undefined): void; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */ declare function clearTimeout(id: number | undefined): void; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) */ declare function createImageBitmap( image: ImageBitmapSource, options?: ImageBitmapOptions, @@ -34952,17 +35623,17 @@ declare function fetch( input: RequestInfo | URL, init?: RequestInit, ): Promise; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */ declare function queueMicrotask(callback: VoidFunction): void; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */ declare function reportError(e: any): void; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */ declare function setInterval( handler: TimerHandler, timeout?: number, ...arguments: any[] ): number; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */ declare function setTimeout( handler: TimerHandler, timeout?: number, @@ -34976,7 +35647,7 @@ declare function structuredClone< value: T, options?: StructuredSerializeOptions, ): BetterTypeScriptLibInternals.StructuredClone.StructuredCloneOutput; -// /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */ +// /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) */ // declare function structuredClone(value: T, options?: StructuredSerializeOptions): T; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/sessionStorage) */ @@ -35057,6 +35728,7 @@ type HashAlgorithmIdentifier = AlgorithmIdentifier; type HeadersInit = [string, string][] | Record | Headers; type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; type ImageBitmapSource = CanvasImageSource | Blob | ImageData; +type ImageBufferSource = AllowSharedBufferSource | ReadableStream; type Int32List = Int32Array | GLint[]; type LineAndPositionSetting = number | AutoKeyword; type MediaProvider = MediaStream | MediaSource | Blob; @@ -35073,6 +35745,7 @@ type OnErrorEventHandler = OnErrorEventHandlerNonNull | null; type OptionalPostfixToken = ` ${T}` | ""; type OptionalPrefixToken = `${T} ` | ""; type PerformanceEntryList = PerformanceEntry[]; +type PublicKeyCredentialClientCapabilities = Record; type PublicKeyCredentialJSON = any; type RTCRtpTransform = RTCRtpScriptTransform; type ReadableStreamController = @@ -35110,6 +35783,7 @@ type Transferable = | TransformStream | AudioData | VideoFrame + | RTCDataChannel | ArrayBuffer; type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; @@ -35399,6 +36073,7 @@ type NavigationTimingType = | "navigate" | "prerender" | "reload"; +type NavigationType = "push" | "reload" | "replace" | "traverse"; type NotificationDirection = "auto" | "ltr" | "rtl"; type NotificationPermission = "default" | "denied" | "granted"; type OffscreenRenderingContextId = @@ -35419,7 +36094,9 @@ type PanningModelType = "HRTF" | "equalpower"; type PaymentComplete = "fail" | "success" | "unknown"; type PaymentShippingType = "delivery" | "pickup" | "shipping"; type PermissionName = + | "camera" | "geolocation" + | "microphone" | "midi" | "notifications" | "persistent-storage" @@ -35444,6 +36121,7 @@ type RTCDegradationPreference = | "balanced" | "maintain-framerate" | "maintain-resolution"; +type RTCDtlsRole = "client" | "server" | "unknown"; type RTCDtlsTransportState = | "closed" | "connected" @@ -35472,6 +36150,7 @@ type RTCIceConnectionState = type RTCIceGathererState = "complete" | "gathering" | "new"; type RTCIceGatheringState = "complete" | "gathering" | "new"; type RTCIceProtocol = "tcp" | "udp"; +type RTCIceRole = "controlled" | "controlling" | "unknown"; type RTCIceTcpCandidateType = "active" | "passive" | "so"; type RTCIceTransportPolicy = "all" | "relay"; type RTCIceTransportState = @@ -35490,6 +36169,7 @@ type RTCPeerConnectionState = | "failed" | "new"; type RTCPriorityType = "high" | "low" | "medium" | "very-low"; +type RTCQualityLimitationReason = "bandwidth" | "cpu" | "none" | "other"; type RTCRtcpMuxPolicy = "require"; type RTCRtpTransceiverDirection = | "inactive" diff --git a/generated/lib.dom.iterable.d.ts b/generated/lib.dom.iterable.d.ts index b7953e2..89b2cfd 100644 --- a/generated/lib.dom.iterable.d.ts +++ b/generated/lib.dom.iterable.d.ts @@ -3,11 +3,6 @@ /// Window Iterable APIs ///////////////////////////// -interface AbortSignal { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */ - any(signals: Iterable): AbortSignal; -} - interface AudioParam { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */ setValueCurveAtTime( @@ -198,6 +193,10 @@ interface IDBObjectStore { ): IDBIndex; } +interface ImageTrackList { + [Symbol.iterator](): ArrayIterator; +} + interface MIDIInputMap extends ReadonlyMap {} interface MIDIOutput { @@ -368,7 +367,7 @@ interface SubtleCrypto { ): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */ generateKey( - algorithm: "Ed25519", + algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">, ): Promise; @@ -461,6 +460,8 @@ interface URLSearchParams { values(): URLSearchParamsIterator; } +interface ViewTransitionTypeSet extends Set {} + interface WEBGL_draw_buffers { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */ drawBuffersWEBGL(buffers: Iterable): void; @@ -702,7 +703,7 @@ interface WebGL2RenderingContextOverloads { srcOffset?: number, srcLength?: GLuint, ): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ uniformMatrix2fv( location: WebGLUniformLocation | null, transpose: GLboolean, diff --git a/generated/lib.es2015.iterable.d.ts b/generated/lib.es2015.iterable.d.ts index bdfbd5a..1e0ab68 100644 --- a/generated/lib.es2015.iterable.d.ts +++ b/generated/lib.es2015.iterable.d.ts @@ -221,10 +221,12 @@ interface SetIterator interface Set { /** Iterates over values in the set. */ [Symbol.iterator](): SetIterator; + /** * Returns an iterable of [v,v] pairs for every value `v` in the set. */ entries(): SetIterator<[T, T]>; + /** * Despite its name, returns an iterable of the values in the set. */ @@ -312,14 +314,17 @@ interface String { interface Int8Array { [Symbol.iterator](): ArrayIterator; + /** * Returns an array of key, value pairs for every entry in the array */ entries(): ArrayIterator<[number, number]>; + /** * Returns an list of keys in the array */ keys(): ArrayIterator; + /** * Returns an list of values in the array */ @@ -347,29 +352,30 @@ interface Int8ArrayConstructor { } // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. -// * @param mapfn A mapping function to call on every element of the array. -// * @param thisArg Value of 'this' used to invoke the mapfn. +// * @param elements An iterable object to convert to an array. // */ -// from(arrayLike: Iterable): Int8Array; +// from(elements: Iterable): Int8Array; // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param elements An iterable object to convert to an array. // * @param mapfn A mapping function to call on every element of the array. // * @param thisArg Value of 'this' used to invoke the mapfn. // */ -// from(arrayLike: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Int8Array; +// from(elements: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Int8Array; interface Uint8Array { [Symbol.iterator](): ArrayIterator; + /** * Returns an array of key, value pairs for every entry in the array */ entries(): ArrayIterator<[number, number]>; + /** * Returns an list of keys in the array */ keys(): ArrayIterator; + /** * Returns an list of values in the array */ @@ -397,21 +403,20 @@ interface Uint8ArrayConstructor { } // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. -// * @param mapfn A mapping function to call on every element of the array. -// * @param thisArg Value of 'this' used to invoke the mapfn. +// * @param elements An iterable object to convert to an array. // */ -// from(arrayLike: Iterable): Uint8Array; +// from(elements: Iterable): Uint8Array; // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param elements An iterable object to convert to an array. // * @param mapfn A mapping function to call on every element of the array. // * @param thisArg Value of 'this' used to invoke the mapfn. // */ -// from(arrayLike: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array; +// from(elements: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array; interface Uint8ClampedArray { [Symbol.iterator](): ArrayIterator; + /** * Returns an array of key, value pairs for every entry in the array */ @@ -451,18 +456,16 @@ interface Uint8ClampedArrayConstructor { } // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. -// * @param mapfn A mapping function to call on every element of the array. -// * @param thisArg Value of 'this' used to invoke the mapfn. +// * @param elements An iterable object to convert to an array. // */ -// from(arrayLike: Iterable): Uint8ClampedArray; +// from(elements: Iterable): Uint8ClampedArray; // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param elements An iterable object to convert to an array. // * @param mapfn A mapping function to call on every element of the array. // * @param thisArg Value of 'this' used to invoke the mapfn. // */ -// from(arrayLike: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray; +// from(elements: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray; interface Int16Array { [Symbol.iterator](): ArrayIterator; @@ -503,29 +506,30 @@ interface Int16ArrayConstructor { } // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. -// * @param mapfn A mapping function to call on every element of the array. -// * @param thisArg Value of 'this' used to invoke the mapfn. +// * @param elements An iterable object to convert to an array. // */ -// from(arrayLike: Iterable): Int16Array; +// from(elements: Iterable): Int16Array; // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param elements An iterable object to convert to an array. // * @param mapfn A mapping function to call on every element of the array. // * @param thisArg Value of 'this' used to invoke the mapfn. // */ -// from(arrayLike: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Int16Array; +// from(elements: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Int16Array; interface Uint16Array { [Symbol.iterator](): ArrayIterator; + /** * Returns an array of key, value pairs for every entry in the array */ entries(): ArrayIterator<[number, number]>; + /** * Returns an list of keys in the array */ keys(): ArrayIterator; + /** * Returns an list of values in the array */ @@ -555,29 +559,30 @@ interface Uint16ArrayConstructor { } // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. -// * @param mapfn A mapping function to call on every element of the array. -// * @param thisArg Value of 'this' used to invoke the mapfn. +// * @param elements An iterable object to convert to an array. // */ -// from(arrayLike: Iterable): Uint16Array; +// from(elements: Iterable): Uint16Array; // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param elements An iterable object to convert to an array. // * @param mapfn A mapping function to call on every element of the array. // * @param thisArg Value of 'this' used to invoke the mapfn. // */ -// from(arrayLike: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint16Array; +// from(elements: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint16Array; interface Int32Array { [Symbol.iterator](): ArrayIterator; + /** * Returns an array of key, value pairs for every entry in the array */ entries(): ArrayIterator<[number, number]>; + /** * Returns an list of keys in the array */ keys(): ArrayIterator; + /** * Returns an list of values in the array */ @@ -605,29 +610,30 @@ interface Int32ArrayConstructor { } // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. -// * @param mapfn A mapping function to call on every element of the array. -// * @param thisArg Value of 'this' used to invoke the mapfn. +// * @param elements An iterable object to convert to an array. // */ -// from(arrayLike: Iterable): Int32Array; +// from(elements: Iterable): Int32Array; // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param elements An iterable object to convert to an array. // * @param mapfn A mapping function to call on every element of the array. // * @param thisArg Value of 'this' used to invoke the mapfn. // */ -// from(arrayLike: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Int32Array; +// from(elements: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Int32Array; interface Uint32Array { [Symbol.iterator](): ArrayIterator; + /** * Returns an array of key, value pairs for every entry in the array */ entries(): ArrayIterator<[number, number]>; + /** * Returns an list of keys in the array */ keys(): ArrayIterator; + /** * Returns an list of values in the array */ @@ -657,29 +663,30 @@ interface Uint32ArrayConstructor { } // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. -// * @param mapfn A mapping function to call on every element of the array. -// * @param thisArg Value of 'this' used to invoke the mapfn. +// * @param elements An iterable object to convert to an array. // */ -// from(arrayLike: Iterable): Uint32Array; +// from(elements: Iterable): Uint32Array; // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param elements An iterable object to convert to an array. // * @param mapfn A mapping function to call on every element of the array. // * @param thisArg Value of 'this' used to invoke the mapfn. // */ -// from(arrayLike: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint32Array; +// from(elements: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint32Array; interface Float32Array { [Symbol.iterator](): ArrayIterator; + /** * Returns an array of key, value pairs for every entry in the array */ entries(): ArrayIterator<[number, number]>; + /** * Returns an list of keys in the array */ keys(): ArrayIterator; + /** * Returns an list of values in the array */ @@ -709,29 +716,30 @@ interface Float32ArrayConstructor { } // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. -// * @param mapfn A mapping function to call on every element of the array. -// * @param thisArg Value of 'this' used to invoke the mapfn. +// * @param elements An iterable object to convert to an array. // */ -// from(arrayLike: Iterable): Float32Array; +// from(elements: Iterable): Float32Array; // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param elements An iterable object to convert to an array. // * @param mapfn A mapping function to call on every element of the array. // * @param thisArg Value of 'this' used to invoke the mapfn. // */ -// from(arrayLike: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Float32Array; +// from(elements: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Float32Array; interface Float64Array { [Symbol.iterator](): ArrayIterator; + /** * Returns an array of key, value pairs for every entry in the array */ entries(): ArrayIterator<[number, number]>; + /** * Returns an list of keys in the array */ keys(): ArrayIterator; + /** * Returns an list of values in the array */ @@ -761,15 +769,13 @@ interface Float64ArrayConstructor { } // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. -// * @param mapfn A mapping function to call on every element of the array. -// * @param thisArg Value of 'this' used to invoke the mapfn. +// * @param elements An iterable object to convert to an array. // */ -// from(arrayLike: Iterable): Float64Array; +// from(elements: Iterable): Float64Array; // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param elements An iterable object to convert to an array. // * @param mapfn A mapping function to call on every element of the array. // * @param thisArg Value of 'this' used to invoke the mapfn. // */ -// from(arrayLike: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Float64Array; +// from(elements: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Float64Array; diff --git a/generated/lib.es2020.bigint.d.ts b/generated/lib.es2020.bigint.d.ts index e70733e..0eb6679 100644 --- a/generated/lib.es2020.bigint.d.ts +++ b/generated/lib.es2020.bigint.d.ts @@ -663,6 +663,11 @@ interface BigInt64ArrayConstructor { byteOffset?: number, length?: number, ): BigInt64Array; + new ( + buffer: ArrayBuffer, + byteOffset?: number, + length?: number, + ): BigInt64Array; new (array: ArrayLike | ArrayBuffer): BigInt64Array; /** The size in bytes of each element in the array. */ @@ -694,18 +699,28 @@ interface BigInt64ArrayConstructor { } // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. -// * @param mapfn A mapping function to call on every element of the array. -// * @param thisArg Value of 'this' used to invoke the mapfn. +// * @param arrayLike An array-like object to convert to an array. // */ // from(arrayLike: ArrayLike): BigInt64Array; // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param arrayLike An array-like object to convert to an array. // * @param mapfn A mapping function to call on every element of the array. // * @param thisArg Value of 'this' used to invoke the mapfn. // */ // from(arrayLike: ArrayLike, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array; +// /** +// * Creates an array from an array-like or iterable object. +// * @param elements An iterable object to convert to an array. +// */ +// from(elements: Iterable): BigInt64Array; +// /** +// * Creates an array from an array-like or iterable object. +// * @param elements An iterable object to convert to an array. +// * @param mapfn A mapping function to call on every element of the array. +// * @param thisArg Value of 'this' used to invoke the mapfn. +// */ +// from(elements: Iterable, mapfn?: (v: T, k: number) => bigint, thisArg?: any): BigInt64Array; declare var BigInt64Array: BigInt64ArrayConstructor; @@ -1141,6 +1156,11 @@ interface BigUint64ArrayConstructor { byteOffset?: number, length?: number, ): BigUint64Array; + new ( + buffer: ArrayBuffer, + byteOffset?: number, + length?: number, + ): BigUint64Array; new (array: ArrayLike | ArrayBuffer): BigUint64Array; /** The size in bytes of each element in the array. */ @@ -1172,12 +1192,28 @@ interface BigUint64ArrayConstructor { } // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param arrayLike An array-like object to convert to an array. +// */ +// from(arrayLike: ArrayLike): BigUint64Array; +// /** +// * Creates an array from an array-like or iterable object. +// * @param arrayLike An array-like object to convert to an array. +// * @param mapfn A mapping function to call on every element of the array. +// * @param thisArg Value of 'this' used to invoke the mapfn. +// */ +// from(arrayLike: ArrayLike, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array; +// /** +// * Creates an array from an array-like or iterable object. +// * @param elements An iterable object to convert to an array. +// */ +// from(elements: Iterable): BigUint64Array; +// /** +// * Creates an array from an array-like or iterable object. +// * @param elements An iterable object to convert to an array. // * @param mapfn A mapping function to call on every element of the array. // * @param thisArg Value of 'this' used to invoke the mapfn. // */ -// from(arrayLike: ArrayLike): BigUint64Array; -// from(arrayLike: ArrayLike, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array; +// from(elements: Iterable, mapfn?: (v: T, k: number) => bigint, thisArg?: any): BigUint64Array; declare var BigUint64Array: BigUint64ArrayConstructor; diff --git a/generated/lib.es2023.array.d.ts b/generated/lib.es2023.array.d.ts index 8862ea6..7d1b915 100644 --- a/generated/lib.es2023.array.d.ts +++ b/generated/lib.es2023.array.d.ts @@ -41,7 +41,7 @@ interface Array { * Returns a copy of an array with its elements sorted. * @param compareFn Function used to determine the order of the elements. It is expected to return * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive - * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * value otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order. * ```ts * [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22] * ``` @@ -119,7 +119,7 @@ interface ReadonlyArray { * Copies and sorts the array. * @param compareFn Function used to determine the order of the elements. It is expected to return * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive - * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * value otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order. * ```ts * [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22] * ``` @@ -199,8 +199,8 @@ interface Int8Array { * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive * value otherwise. If omitted, the elements are sorted in ascending order. * ```ts - * const myNums = Int8Array.from([11, 2, 22, 1]); - * myNums.toSorted((a, b) => a - b) // Int8Array(4) [1, 2, 11, 22] + * const myNums = Int8Array.from([11, 2, 22, 1]); + * myNums.toSorted((a, b) => a - b) // Int8Array(4) [1, 2, 11, 22] * ``` */ toSorted( @@ -261,8 +261,8 @@ interface Uint8Array { * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive * value otherwise. If omitted, the elements are sorted in ascending order. * ```ts - * const myNums = Uint8Array.from([11, 2, 22, 1]); - * myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22] + * const myNums = Uint8Array.from([11, 2, 22, 1]); + * myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22] * ``` */ toSorted( @@ -323,8 +323,8 @@ interface Uint8ClampedArray { * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive * value otherwise. If omitted, the elements are sorted in ascending order. * ```ts - * const myNums = Uint8ClampedArray.from([11, 2, 22, 1]); - * myNums.toSorted((a, b) => a - b) // Uint8ClampedArray(4) [1, 2, 11, 22] + * const myNums = Uint8ClampedArray.from([11, 2, 22, 1]); + * myNums.toSorted((a, b) => a - b) // Uint8ClampedArray(4) [1, 2, 11, 22] * ``` */ toSorted( @@ -385,8 +385,8 @@ interface Int16Array { * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive * value otherwise. If omitted, the elements are sorted in ascending order. * ```ts - * const myNums = Int16Array.from([11, 2, -22, 1]); - * myNums.toSorted((a, b) => a - b) // Int16Array(4) [-22, 1, 2, 11] + * const myNums = Int16Array.from([11, 2, -22, 1]); + * myNums.toSorted((a, b) => a - b) // Int16Array(4) [-22, 1, 2, 11] * ``` */ toSorted( @@ -447,8 +447,8 @@ interface Uint16Array { * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive * value otherwise. If omitted, the elements are sorted in ascending order. * ```ts - * const myNums = Uint16Array.from([11, 2, 22, 1]); - * myNums.toSorted((a, b) => a - b) // Uint16Array(4) [1, 2, 11, 22] + * const myNums = Uint16Array.from([11, 2, 22, 1]); + * myNums.toSorted((a, b) => a - b) // Uint16Array(4) [1, 2, 11, 22] * ``` */ toSorted( @@ -509,8 +509,8 @@ interface Int32Array { * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive * value otherwise. If omitted, the elements are sorted in ascending order. * ```ts - * const myNums = Int32Array.from([11, 2, -22, 1]); - * myNums.toSorted((a, b) => a - b) // Int32Array(4) [-22, 1, 2, 11] + * const myNums = Int32Array.from([11, 2, -22, 1]); + * myNums.toSorted((a, b) => a - b) // Int32Array(4) [-22, 1, 2, 11] * ``` */ toSorted( @@ -571,8 +571,8 @@ interface Uint32Array { * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive * value otherwise. If omitted, the elements are sorted in ascending order. * ```ts - * const myNums = Uint32Array.from([11, 2, 22, 1]); - * myNums.toSorted((a, b) => a - b) // Uint32Array(4) [1, 2, 11, 22] + * const myNums = Uint32Array.from([11, 2, 22, 1]); + * myNums.toSorted((a, b) => a - b) // Uint32Array(4) [1, 2, 11, 22] * ``` */ toSorted( @@ -633,8 +633,8 @@ interface Float32Array { * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive * value otherwise. If omitted, the elements are sorted in ascending order. * ```ts - * const myNums = Float32Array.from([11.25, 2, -22.5, 1]); - * myNums.toSorted((a, b) => a - b) // Float32Array(4) [-22.5, 1, 2, 11.5] + * const myNums = Float32Array.from([11.25, 2, -22.5, 1]); + * myNums.toSorted((a, b) => a - b) // Float32Array(4) [-22.5, 1, 2, 11.5] * ``` */ toSorted( @@ -695,8 +695,8 @@ interface Float64Array { * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive * value otherwise. If omitted, the elements are sorted in ascending order. * ```ts - * const myNums = Float64Array.from([11.25, 2, -22.5, 1]); - * myNums.toSorted((a, b) => a - b) // Float64Array(4) [-22.5, 1, 2, 11.5] + * const myNums = Float64Array.from([11.25, 2, -22.5, 1]); + * myNums.toSorted((a, b) => a - b) // Float64Array(4) [-22.5, 1, 2, 11.5] * ``` */ toSorted( @@ -757,8 +757,8 @@ interface BigInt64Array { * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive * value otherwise. If omitted, the elements are sorted in ascending order. * ```ts - * const myNums = BigInt64Array.from([11n, 2n, -22n, 1n]); - * myNums.toSorted((a, b) => Number(a - b)) // BigInt64Array(4) [-22n, 1n, 2n, 11n] + * const myNums = BigInt64Array.from([11n, 2n, -22n, 1n]); + * myNums.toSorted((a, b) => Number(a - b)) // BigInt64Array(4) [-22n, 1n, 2n, 11n] * ``` */ toSorted( @@ -819,8 +819,8 @@ interface BigUint64Array { * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive * value otherwise. If omitted, the elements are sorted in ascending order. * ```ts - * const myNums = BigUint64Array.from([11n, 2n, 22n, 1n]); - * myNums.toSorted((a, b) => Number(a - b)) // BigUint64Array(4) [1n, 2n, 11n, 22n] + * const myNums = BigUint64Array.from([11n, 2n, 22n, 1n]); + * myNums.toSorted((a, b) => Number(a - b)) // BigUint64Array(4) [1n, 2n, 11n, 22n] * ``` */ toSorted( diff --git a/generated/lib.es5.d.ts b/generated/lib.es5.d.ts index 9fc6187..ff499f3 100644 --- a/generated/lib.es5.d.ts +++ b/generated/lib.es5.d.ts @@ -911,7 +911,7 @@ interface Math { */ atan(x: number): number; /** - * Returns the angle (in radians) from the X axis to a point. + * Returns the angle (in radians) between the X axis and the line going through both the origin and the given point. * @param y A numeric expression representing the cartesian y-coordinate. * @param x A numeric expression representing the cartesian x-coordinate. */ @@ -1685,8 +1685,8 @@ interface ReadonlyArray { // some(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean; // /** // * Performs the specified action for each element in an array. -// * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. -// * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. +// * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. +// * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. // */ // forEach(callbackfn: (value: T, index: number, array: readonly T[]) => void, thisArg?: any): void; // /** @@ -1806,7 +1806,7 @@ interface Array { * This method mutates the array and returns a reference to the same array. * @param compareFn Function used to determine the order of the elements. It is expected to return * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive - * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * value otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order. * ```ts * [11,2,22,1].sort((a, b) => a - b) * ``` @@ -2007,8 +2007,8 @@ interface Array { // some(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean; // /** // * Performs the specified action for each element in an array. -// * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. -// * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. +// * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. +// * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. // */ // forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void; // /** @@ -2632,7 +2632,7 @@ interface Int8Array { * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. + * search starts at index 0. */ indexOf(searchElement: number, fromIndex?: number): number; @@ -2850,9 +2850,9 @@ interface Int8Array { // findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number; // /** // * Performs the specified action for each element in an array. -// * @param callbackfn A function that accepts up to three arguments. forEach calls the +// * @param callbackfn A function that accepts up to three arguments. forEach calls the // * callbackfn function one time for each element in the array. -// * @param thisArg An object to which the this keyword can refer in the callbackfn function. +// * @param thisArg An object to which the this keyword can refer in the callbackfn function. // * If thisArg is omitted, undefined is used as the this value. // */ // forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void; @@ -2930,6 +2930,11 @@ interface Int8ArrayConstructor { byteOffset?: number, length?: number, ): Int8Array; + new ( + buffer: ArrayBuffer, + byteOffset?: number, + length?: number, + ): Int8Array; new (array: ArrayLike | ArrayBuffer): Int8Array; /** @@ -2961,12 +2966,12 @@ interface Int8ArrayConstructor { } // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param arrayLike An array-like object to convert to an array. // */ // from(arrayLike: ArrayLike): Int8Array; // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param arrayLike An array-like object to convert to an array. // * @param mapfn A mapping function to call on every element of the array. // * @param thisArg Value of 'this' used to invoke the mapfn. // */ @@ -3094,7 +3099,7 @@ interface Uint8Array { * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. + * search starts at index 0. */ indexOf(searchElement: number, fromIndex?: number): number; @@ -3312,9 +3317,9 @@ interface Uint8Array { // findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number; // /** // * Performs the specified action for each element in an array. -// * @param callbackfn A function that accepts up to three arguments. forEach calls the +// * @param callbackfn A function that accepts up to three arguments. forEach calls the // * callbackfn function one time for each element in the array. -// * @param thisArg An object to which the this keyword can refer in the callbackfn function. +// * @param thisArg An object to which the this keyword can refer in the callbackfn function. // * If thisArg is omitted, undefined is used as the this value. // */ // forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void; @@ -3392,6 +3397,11 @@ interface Uint8ArrayConstructor { byteOffset?: number, length?: number, ): Uint8Array; + new ( + buffer: ArrayBuffer, + byteOffset?: number, + length?: number, + ): Uint8Array; new (array: ArrayLike | ArrayBuffer): Uint8Array; /** @@ -3423,12 +3433,12 @@ interface Uint8ArrayConstructor { } // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param arrayLike An array-like object to convert to an array. // */ // from(arrayLike: ArrayLike): Uint8Array; // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param arrayLike An array-like object to convert to an array. // * @param mapfn A mapping function to call on every element of the array. // * @param thisArg Value of 'this' used to invoke the mapfn. // */ @@ -3558,7 +3568,7 @@ interface Uint8ClampedArray< * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. + * search starts at index 0. */ indexOf(searchElement: number, fromIndex?: number): number; @@ -3776,9 +3786,9 @@ interface Uint8ClampedArray< // findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number; // /** // * Performs the specified action for each element in an array. -// * @param callbackfn A function that accepts up to three arguments. forEach calls the +// * @param callbackfn A function that accepts up to three arguments. forEach calls the // * callbackfn function one time for each element in the array. -// * @param thisArg An object to which the this keyword can refer in the callbackfn function. +// * @param thisArg An object to which the this keyword can refer in the callbackfn function. // * If thisArg is omitted, undefined is used as the this value. // */ // forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void; @@ -3856,6 +3866,11 @@ interface Uint8ClampedArrayConstructor { byteOffset?: number, length?: number, ): Uint8ClampedArray; + new ( + buffer: ArrayBuffer, + byteOffset?: number, + length?: number, + ): Uint8ClampedArray; new (array: ArrayLike | ArrayBuffer): Uint8ClampedArray; /** @@ -3887,12 +3902,12 @@ interface Uint8ClampedArrayConstructor { } // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param arrayLike An array-like object to convert to an array. // */ // from(arrayLike: ArrayLike): Uint8ClampedArray; // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param arrayLike An array-like object to convert to an array. // * @param mapfn A mapping function to call on every element of the array. // * @param thisArg Value of 'this' used to invoke the mapfn. // */ @@ -4019,7 +4034,7 @@ interface Int16Array { * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. + * search starts at index 0. */ indexOf(searchElement: number, fromIndex?: number): number; @@ -4237,9 +4252,9 @@ interface Int16Array { // findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number; // /** // * Performs the specified action for each element in an array. -// * @param callbackfn A function that accepts up to three arguments. forEach calls the +// * @param callbackfn A function that accepts up to three arguments. forEach calls the // * callbackfn function one time for each element in the array. -// * @param thisArg An object to which the this keyword can refer in the callbackfn function. +// * @param thisArg An object to which the this keyword can refer in the callbackfn function. // * If thisArg is omitted, undefined is used as the this value. // */ // forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void; @@ -4317,6 +4332,11 @@ interface Int16ArrayConstructor { byteOffset?: number, length?: number, ): Int16Array; + new ( + buffer: ArrayBuffer, + byteOffset?: number, + length?: number, + ): Int16Array; new (array: ArrayLike | ArrayBuffer): Int16Array; /** @@ -4348,12 +4368,12 @@ interface Int16ArrayConstructor { } // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param arrayLike An array-like object to convert to an array. // */ // from(arrayLike: ArrayLike): Int16Array; // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param arrayLike An array-like object to convert to an array. // * @param mapfn A mapping function to call on every element of the array. // * @param thisArg Value of 'this' used to invoke the mapfn. // */ @@ -4481,7 +4501,7 @@ interface Uint16Array { * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. + * search starts at index 0. */ indexOf(searchElement: number, fromIndex?: number): number; @@ -4699,9 +4719,9 @@ interface Uint16Array { // findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number; // /** // * Performs the specified action for each element in an array. -// * @param callbackfn A function that accepts up to three arguments. forEach calls the +// * @param callbackfn A function that accepts up to three arguments. forEach calls the // * callbackfn function one time for each element in the array. -// * @param thisArg An object to which the this keyword can refer in the callbackfn function. +// * @param thisArg An object to which the this keyword can refer in the callbackfn function. // * If thisArg is omitted, undefined is used as the this value. // */ // forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void; @@ -4779,6 +4799,11 @@ interface Uint16ArrayConstructor { byteOffset?: number, length?: number, ): Uint16Array; + new ( + buffer: ArrayBuffer, + byteOffset?: number, + length?: number, + ): Uint16Array; new (array: ArrayLike | ArrayBuffer): Uint16Array; /** @@ -4810,12 +4835,12 @@ interface Uint16ArrayConstructor { } // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param arrayLike An array-like object to convert to an array. // */ // from(arrayLike: ArrayLike): Uint16Array; // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param arrayLike An array-like object to convert to an array. // * @param mapfn A mapping function to call on every element of the array. // * @param thisArg Value of 'this' used to invoke the mapfn. // */ @@ -4942,7 +4967,7 @@ interface Int32Array { * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. + * search starts at index 0. */ indexOf(searchElement: number, fromIndex?: number): number; @@ -5160,9 +5185,9 @@ interface Int32Array { // findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number; // /** // * Performs the specified action for each element in an array. -// * @param callbackfn A function that accepts up to three arguments. forEach calls the +// * @param callbackfn A function that accepts up to three arguments. forEach calls the // * callbackfn function one time for each element in the array. -// * @param thisArg An object to which the this keyword can refer in the callbackfn function. +// * @param thisArg An object to which the this keyword can refer in the callbackfn function. // * If thisArg is omitted, undefined is used as the this value. // */ // forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void; @@ -5240,6 +5265,11 @@ interface Int32ArrayConstructor { byteOffset?: number, length?: number, ): Int32Array; + new ( + buffer: ArrayBuffer, + byteOffset?: number, + length?: number, + ): Int32Array; new (array: ArrayLike | ArrayBuffer): Int32Array; /** @@ -5271,12 +5301,12 @@ interface Int32ArrayConstructor { } // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param arrayLike An array-like object to convert to an array. // */ // from(arrayLike: ArrayLike): Int32Array; // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param arrayLike An array-like object to convert to an array. // * @param mapfn A mapping function to call on every element of the array. // * @param thisArg Value of 'this' used to invoke the mapfn. // */ @@ -5403,7 +5433,7 @@ interface Uint32Array { * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. + * search starts at index 0. */ indexOf(searchElement: number, fromIndex?: number): number; @@ -5621,9 +5651,9 @@ interface Uint32Array { // findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number; // /** // * Performs the specified action for each element in an array. -// * @param callbackfn A function that accepts up to three arguments. forEach calls the +// * @param callbackfn A function that accepts up to three arguments. forEach calls the // * callbackfn function one time for each element in the array. -// * @param thisArg An object to which the this keyword can refer in the callbackfn function. +// * @param thisArg An object to which the this keyword can refer in the callbackfn function. // * If thisArg is omitted, undefined is used as the this value. // */ // forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void; @@ -5701,6 +5731,11 @@ interface Uint32ArrayConstructor { byteOffset?: number, length?: number, ): Uint32Array; + new ( + buffer: ArrayBuffer, + byteOffset?: number, + length?: number, + ): Uint32Array; new (array: ArrayLike | ArrayBuffer): Uint32Array; /** @@ -5732,12 +5767,12 @@ interface Uint32ArrayConstructor { } // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param arrayLike An array-like object to convert to an array. // */ // from(arrayLike: ArrayLike): Uint32Array; // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param arrayLike An array-like object to convert to an array. // * @param mapfn A mapping function to call on every element of the array. // * @param thisArg Value of 'this' used to invoke the mapfn. // */ @@ -5865,7 +5900,7 @@ interface Float32Array { * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. + * search starts at index 0. */ indexOf(searchElement: number, fromIndex?: number): number; @@ -6083,9 +6118,9 @@ interface Float32Array { // findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number; // /** // * Performs the specified action for each element in an array. -// * @param callbackfn A function that accepts up to three arguments. forEach calls the +// * @param callbackfn A function that accepts up to three arguments. forEach calls the // * callbackfn function one time for each element in the array. -// * @param thisArg An object to which the this keyword can refer in the callbackfn function. +// * @param thisArg An object to which the this keyword can refer in the callbackfn function. // * If thisArg is omitted, undefined is used as the this value. // */ // forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void; @@ -6163,6 +6198,11 @@ interface Float32ArrayConstructor { byteOffset?: number, length?: number, ): Float32Array; + new ( + buffer: ArrayBuffer, + byteOffset?: number, + length?: number, + ): Float32Array; new (array: ArrayLike | ArrayBuffer): Float32Array; /** @@ -6194,12 +6234,12 @@ interface Float32ArrayConstructor { } // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param arrayLike An array-like object to convert to an array. // */ // from(arrayLike: ArrayLike): Float32Array; // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param arrayLike An array-like object to convert to an array. // * @param mapfn A mapping function to call on every element of the array. // * @param thisArg Value of 'this' used to invoke the mapfn. // */ @@ -6327,7 +6367,7 @@ interface Float64Array { * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. + * search starts at index 0. */ indexOf(searchElement: number, fromIndex?: number): number; @@ -6545,9 +6585,9 @@ interface Float64Array { // findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number; // /** // * Performs the specified action for each element in an array. -// * @param callbackfn A function that accepts up to three arguments. forEach calls the +// * @param callbackfn A function that accepts up to three arguments. forEach calls the // * callbackfn function one time for each element in the array. -// * @param thisArg An object to which the this keyword can refer in the callbackfn function. +// * @param thisArg An object to which the this keyword can refer in the callbackfn function. // * If thisArg is omitted, undefined is used as the this value. // */ // forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void; @@ -6625,6 +6665,11 @@ interface Float64ArrayConstructor { byteOffset?: number, length?: number, ): Float64Array; + new ( + buffer: ArrayBuffer, + byteOffset?: number, + length?: number, + ): Float64Array; new (array: ArrayLike | ArrayBuffer): Float64Array; /** @@ -6656,12 +6701,12 @@ interface Float64ArrayConstructor { } // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param arrayLike An array-like object to convert to an array. // */ // from(arrayLike: ArrayLike): Float64Array; // /** // * Creates an array from an array-like or iterable object. -// * @param arrayLike An array-like or iterable object to convert to an array. +// * @param arrayLike An array-like object to convert to an array. // * @param mapfn A mapping function to call on every element of the array. // * @param thisArg Value of 'this' used to invoke the mapfn. // */ diff --git a/generated/lib.esnext.d.ts b/generated/lib.esnext.d.ts index b1b9223..fdc5f5d 100644 --- a/generated/lib.esnext.d.ts +++ b/generated/lib.esnext.d.ts @@ -6,3 +6,5 @@ /// /// /// +/// +/// diff --git a/generated/lib.esnext.float16.d.ts b/generated/lib.esnext.float16.d.ts new file mode 100644 index 0000000..2c22f14 --- /dev/null +++ b/generated/lib.esnext.float16.d.ts @@ -0,0 +1,498 @@ +/// +/// +/// + +/** + * A typed array of 16-bit float values. The contents are initialized to 0. If the requested number + * of bytes could not be allocated an exception is raised. + */ +interface Float16Array { + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + readonly buffer: TArrayBuffer; + + /** + * The length in bytes of the array. + */ + readonly byteLength: number; + + /** + * The offset in bytes of the array. + */ + readonly byteOffset: number; + + /** + * Returns the item located at the specified index. + * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. + */ + at(index: number): number | undefined; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): this; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param predicate A function that accepts up to three arguments. The every method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value false, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + every( + predicate: (value: number, index: number, array: this) => unknown, + thisArg?: any, + ): boolean; + + /** + * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): this; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param predicate A function that accepts up to three arguments. The filter method calls + * the predicate function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter( + predicate: (value: number, index: number, array: this) => any, + thisArg?: any, + ): Float16Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find( + predicate: (value: number, index: number, obj: this) => boolean, + thisArg?: any, + ): number | undefined; + + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex( + predicate: (value: number, index: number, obj: this) => boolean, + thisArg?: any, + ): number; + + /** + * Returns the value of the last element in the array where predicate is true, and undefined + * otherwise. + * @param predicate findLast calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, findLast + * immediately returns that element value. Otherwise, findLast returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLast( + predicate: (value: number, index: number, array: this) => value is S, + thisArg?: any, + ): S | undefined; + findLast( + predicate: (value: number, index: number, array: this) => unknown, + thisArg?: any, + ): number | undefined; + + /** + * Returns the index of the last element in the array where predicate is true, and -1 + * otherwise. + * @param predicate findLastIndex calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, + * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLastIndex( + predicate: (value: number, index: number, array: this) => unknown, + thisArg?: any, + ): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach( + callbackfn: (value: number, index: number, array: this) => void, + thisArg?: any, + ): void; + + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. + * @param searchElement The element to search for. + * @param fromIndex The position in this array at which to begin searching for searchElement. + */ + includes(searchElement: number, fromIndex?: number): boolean; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + readonly length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map( + callbackfn: (value: number, index: number, array: this) => number, + thisArg?: any, + ): Float16Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce( + callbackfn: ( + previousValue: number, + currentValue: number, + currentIndex: number, + array: this, + ) => number, + ): number; + reduce( + callbackfn: ( + previousValue: number, + currentValue: number, + currentIndex: number, + array: this, + ) => number, + initialValue: number, + ): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce( + callbackfn: ( + previousValue: U, + currentValue: number, + currentIndex: number, + array: this, + ) => U, + initialValue: U, + ): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight( + callbackfn: ( + previousValue: number, + currentValue: number, + currentIndex: number, + array: this, + ) => number, + ): number; + reduceRight( + callbackfn: ( + previousValue: number, + currentValue: number, + currentIndex: number, + array: this, + ) => number, + initialValue: number, + ): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight( + callbackfn: ( + previousValue: U, + currentValue: number, + currentIndex: number, + array: this, + ) => U, + initialValue: U, + ): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): this; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. + */ + slice(start?: number, end?: number): Float16Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param predicate A function that accepts up to three arguments. The some method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value true, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + some( + predicate: (value: number, index: number, array: this) => unknown, + thisArg?: any, + ): boolean; + + /** + * Sorts an array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if first argument is less than second argument, zero if they're equal and a positive + * value otherwise. If omitted, the elements are sorted in ascending order. + * ```ts + * [11,2,22,1].sort((a, b) => a - b) + * ``` + */ + sort(compareFn?: (a: number, b: number) => number): this; + + /** + * Gets a new Float16Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin?: number, end?: number): Float16Array; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString( + locales?: string | string[], + options?: Intl.NumberFormatOptions, + ): string; + + /** + * Copies the array and returns the copy with the elements in reverse order. + */ + toReversed(): Float16Array; + + /** + * Copies and sorts the array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending order. + * ```ts + * const myNums = Float16Array.from([11.25, 2, -22.5, 1]); + * myNums.toSorted((a, b) => a - b) // Float16Array(4) [-22.5, 1, 2, 11.5] + * ``` + */ + toSorted( + compareFn?: (a: number, b: number) => number, + ): Float16Array; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + /** Returns the primitive value of the specified object. */ + valueOf(): this; + + /** + * Copies the array and inserts the given number at the provided index. + * @param index The index of the value to overwrite. If the index is + * negative, then it replaces from the end of the array. + * @param value The value to insert into the copied array. + * @returns A copy of the original array with the inserted value. + */ + with(index: number, value: number): Float16Array; + + [index: number]: number; + + [Symbol.iterator](): ArrayIterator; + + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): ArrayIterator<[number, number]>; + + /** + * Returns an list of keys in the array + */ + keys(): ArrayIterator; + + /** + * Returns an list of values in the array + */ + values(): ArrayIterator; + + readonly [Symbol.toStringTag]: "Float16Array"; +} + +interface Float16ArrayConstructor { + readonly prototype: Float16Array; + new (length?: number): Float16Array; + new (array: ArrayLike | Iterable): Float16Array; + new ( + buffer: TArrayBuffer, + byteOffset?: number, + length?: number, + ): Float16Array; + + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Float16Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like object to convert to an array. + */ + from(arrayLike: ArrayLike): Float16Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from( + arrayLike: ArrayLike, + mapfn: (v: T, k: number) => number, + thisArg?: any, + ): Float16Array; + + /** + * Creates an array from an array-like or iterable object. + * @param elements An iterable object to convert to an array. + */ + from(elements: Iterable): Float16Array; + + /** + * Creates an array from an array-like or iterable object. + * @param elements An iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from( + elements: Iterable, + mapfn?: (v: T, k: number) => number, + thisArg?: any, + ): Float16Array; +} +declare var Float16Array: Float16ArrayConstructor; + +interface Math { + /** + * Returns the nearest half precision float representation of a number. + * @param x A numeric expression. + */ + f16round(x: number): number; +} + +interface DataView { + /** + * Gets the Float16 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + * @param littleEndian If false or undefined, a big-endian value should be read. + */ + getFloat16(byteOffset: number, littleEndian?: boolean): number; + + /** + * Stores an Float16 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written. + */ + setFloat16(byteOffset: number, value: number, littleEndian?: boolean): void; +} diff --git a/generated/lib.esnext.iterator.d.ts b/generated/lib.esnext.iterator.d.ts index 335aa25..784394b 100644 --- a/generated/lib.esnext.iterator.d.ts +++ b/generated/lib.esnext.iterator.d.ts @@ -117,7 +117,7 @@ declare global { /** * Performs the specified action for each element in the iterator. - * @param callbackfn A function that accepts up to two arguments. forEach calls the callbackfn function one time for each element in the iterator. + * @param callbackfn A function that accepts up to two arguments. forEach calls the callbackfn function one time for each element in the iterator. */ forEach(callbackfn: (value: T, index: number) => void): void; diff --git a/generated/lib.esnext.promise.d.ts b/generated/lib.esnext.promise.d.ts new file mode 100644 index 0000000..e13b8a4 --- /dev/null +++ b/generated/lib.esnext.promise.d.ts @@ -0,0 +1,20 @@ +/// +interface PromiseConstructor { + /** + * Takes a callback of any kind (returns or throws, synchronously or asynchronously) and wraps its result + * in a Promise. + * + * @param callbackFn A function that is called synchronously. It can do anything: either return + * a value, throw an error, or return a promise. + * @param args Additional arguments, that will be passed to the callback. + * + * @returns A Promise that is: + * - Already fulfilled, if the callback synchronously returns a value. + * - Already rejected, if the callback synchronously throws an error. + * - Asynchronously fulfilled or rejected, if the callback returns a promise. + */ + try( + callbackFn: (...args: U) => T | PromiseLike, + ...args: U + ): Promise>; +} diff --git a/generated/lib.webworker.d.ts b/generated/lib.webworker.d.ts index dfe489e..99d21f7 100644 --- a/generated/lib.webworker.d.ts +++ b/generated/lib.webworker.d.ts @@ -274,7 +274,7 @@ interface ExtendableMessageEventInit extends ExtendableEventInit { interface FetchEventInit extends ExtendableEventInit { clientId?: string; - handled?: Promise; + handled?: Promise; preloadResponse?: Promise; replacesClientId?: string; request: Request; @@ -382,6 +382,26 @@ interface ImageDataSettings { colorSpace?: PredefinedColorSpace; } +interface ImageDecodeOptions { + completeFramesOnly?: boolean; + frameIndex?: number; +} + +interface ImageDecodeResult { + complete: boolean; + image: VideoFrame; +} + +interface ImageDecoderInit { + colorSpaceConversion?: ColorSpaceConversion; + data: ImageBufferSource; + desiredHeight?: number; + desiredWidth?: number; + preferAnimation?: boolean; + transfer?: ArrayBuffer[]; + type: string; +} + interface ImageEncodeOptions { quality?: number; type?: string; @@ -2450,8 +2470,11 @@ interface DOMMatrix extends DOMMatrixReadOnly { m43: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m44: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/invertSelf) */ invertSelf(): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/multiplySelf) */ multiplySelf(other?: DOMMatrixInit): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/preMultiplySelf) */ preMultiplySelf(other?: DOMMatrixInit): DOMMatrix; rotateAxisAngleSelf( x?: number, @@ -2460,6 +2483,7 @@ interface DOMMatrix extends DOMMatrixReadOnly { angle?: number, ): DOMMatrix; rotateFromVectorSelf(x?: number, y?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateSelf) */ rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; scale3dSelf( scale?: number, @@ -2475,8 +2499,11 @@ interface DOMMatrix extends DOMMatrixReadOnly { originY?: number, originZ?: number, ): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewXSelf) */ skewXSelf(sx?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewYSelf) */ skewYSelf(sy?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/translateSelf) */ translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix; } @@ -2502,7 +2529,9 @@ interface DOMMatrixReadOnly { readonly e: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly f: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D) */ readonly is2D: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity) */ readonly isIdentity: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m11: number; @@ -2538,8 +2567,11 @@ interface DOMMatrixReadOnly { readonly m44: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */ flipX(): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY) */ flipY(): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse) */ inverse(): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply) */ multiply(other?: DOMMatrixInit): DOMMatrix; rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; rotateAxisAngle( @@ -2568,9 +2600,13 @@ interface DOMMatrixReadOnly { scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix; skewX(sx?: number): DOMMatrix; skewY(sy?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array) */ toFloat32Array(): Float32Array; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array) */ toFloat64Array(): Float64Array; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON) */ toJSON(): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint) */ transformPoint(point?: DOMPointInit): DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) */ translate(tx?: number, ty?: number, tz?: number): DOMMatrix; @@ -2613,6 +2649,7 @@ interface DOMPointReadOnly { readonly y: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) */ readonly z: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform) */ matrixTransform(matrix?: DOMMatrixInit): DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ toJSON(): any; @@ -2627,11 +2664,17 @@ declare var DOMPointReadOnly: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */ interface DOMQuad { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) */ readonly p1: DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) */ readonly p2: DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) */ readonly p3: DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) */ readonly p4: DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */ getBounds(): DOMRect; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON) */ toJSON(): any; } @@ -2649,9 +2692,13 @@ declare var DOMQuad: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */ interface DOMRect extends DOMRectReadOnly { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/height) */ height: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/width) */ width: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/x) */ x: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/y) */ y: number; } @@ -2680,6 +2727,7 @@ interface DOMRectReadOnly { readonly x: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */ readonly y: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) */ toJSON(): any; } @@ -2738,7 +2786,9 @@ declare var DecompressionStream: { new (format: CompressionFormat): DecompressionStream; }; -interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap { +interface DedicatedWorkerGlobalScopeEventMap + extends WorkerGlobalScopeEventMap, + MessageEventTargetEventMap { message: MessageEvent; messageerror: MessageEvent; rtctransform: RTCTransformEvent; @@ -2751,21 +2801,14 @@ interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap { */ interface DedicatedWorkerGlobalScope extends WorkerGlobalScope, - AnimationFrameProvider { + AnimationFrameProvider, + MessageEventTarget { /** * Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/name) */ readonly name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */ - onmessage: - | ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) - | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */ - onmessageerror: - | ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) - | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) */ onrtctransform: | ((this: DedicatedWorkerGlobalScope, ev: RTCTransformEvent) => any) @@ -2936,10 +2979,15 @@ declare var EncodedVideoChunk: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent) */ interface ErrorEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */ readonly colno: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */ readonly error: any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */ readonly filename: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */ readonly lineno: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */ readonly message: string; } @@ -3267,7 +3315,7 @@ interface FetchEvent extends ExtendableEvent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/clientId) */ readonly clientId: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/handled) */ - readonly handled: Promise; + readonly handled: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/preloadResponse) */ readonly preloadResponse: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/request) */ @@ -3697,6 +3745,16 @@ declare var FormData: { new (): FormData; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError) + */ +interface GPUError { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError/message) */ + readonly message: string; +} + interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; @@ -4607,6 +4665,70 @@ declare var ImageData: { ): ImageData; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder) + */ +interface ImageDecoder { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/complete) */ + readonly complete: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/completed) */ + readonly completed: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/tracks) */ + readonly tracks: ImageTrackList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/type) */ + readonly type: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/close) */ + close(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/decode) */ + decode(options?: ImageDecodeOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/reset) */ + reset(): void; +} + +declare var ImageDecoder: { + prototype: ImageDecoder; + new (init: ImageDecoderInit): ImageDecoder; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/isTypeSupported_static) */ + isTypeSupported(type: string): Promise; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack) */ +interface ImageTrack { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/animated) */ + readonly animated: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/frameCount) */ + readonly frameCount: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/repetitionCount) */ + readonly repetitionCount: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/selected) */ + selected: boolean; +} + +declare var ImageTrack: { + prototype: ImageTrack; + new (): ImageTrack; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList) */ +interface ImageTrackList { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/ready) */ + readonly ready: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedIndex) */ + readonly selectedIndex: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedTrack) */ + readonly selectedTrack: ImageTrack | null; + [index: number]: ImageTrack; +} + +declare var ImageTrackList: { + prototype: ImageTrackList; + new (): ImageTrackList; +}; + interface ImportMeta { url: string; resolve(specifier: string): string; @@ -4771,7 +4893,39 @@ declare var MessageEvent: { new (type: string, eventInitDict?: MessageEventInit): MessageEvent; }; -interface MessagePortEventMap { +interface MessageEventTargetEventMap { + message: MessageEvent; + messageerror: MessageEvent; +} + +interface MessageEventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */ + onmessage: ((this: T, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */ + onmessageerror: ((this: T, ev: MessageEvent) => any) | null; + addEventListener( + type: K, + listener: (this: T, ev: MessageEventTargetEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: T, ev: MessageEventTargetEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; +} + +interface MessagePortEventMap extends MessageEventTargetEventMap { message: MessageEvent; messageerror: MessageEvent; } @@ -4781,11 +4935,7 @@ interface MessagePortEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort) */ -interface MessagePort extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/message_event) */ - onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/messageerror_event) */ - onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null; +interface MessagePort extends EventTarget, MessageEventTarget { /** * Disconnects the port, so that it is no longer active. * @@ -5680,6 +5830,85 @@ declare var PushSubscriptionOptions: { new (): PushSubscriptionOptions; }; +interface RTCDataChannelEventMap { + bufferedamountlow: Event; + close: Event; + closing: Event; + error: Event; + message: MessageEvent; + open: Event; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel) */ +interface RTCDataChannel extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/binaryType) */ + binaryType: BinaryType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmount) */ + readonly bufferedAmount: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmountLowThreshold) */ + bufferedAmountLowThreshold: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/id) */ + readonly id: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/label) */ + readonly label: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxPacketLifeTime) */ + readonly maxPacketLifeTime: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxRetransmits) */ + readonly maxRetransmits: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/negotiated) */ + readonly negotiated: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedamountlow_event) */ + onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close_event) */ + onclose: ((this: RTCDataChannel, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/closing_event) */ + onclosing: ((this: RTCDataChannel, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/error_event) */ + onerror: ((this: RTCDataChannel, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/message_event) */ + onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/open_event) */ + onopen: ((this: RTCDataChannel, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/ordered) */ + readonly ordered: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/protocol) */ + readonly protocol: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/readyState) */ + readonly readyState: RTCDataChannelState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close) */ + close(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/send) */ + send(data: string): void; + send(data: Blob): void; + send(data: ArrayBuffer): void; + send(data: ArrayBufferView): void; + addEventListener( + type: K, + listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; +} + +declare var RTCDataChannel: { + prototype: RTCDataChannel; + new (): RTCDataChannel; +}; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame) */ interface RTCEncodedAudioFrame { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data) */ @@ -5868,7 +6097,7 @@ declare var ReadableStreamDefaultReader: { interface ReadableStreamGenericReader { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/closed) */ - readonly closed: Promise; + readonly closed: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/cancel) */ cancel(reason?: any): Promise; } @@ -5954,7 +6183,11 @@ interface Request extends Body { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity) */ readonly integrity: string; - /** Returns a boolean indicating whether or not request can outlive the global in which it was created. */ + /** + * Returns a boolean indicating whether or not request can outlive the global in which it was created. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive) + */ readonly keepalive: boolean; /** * Returns request's HTTP method, which is "GET" by default. @@ -6530,7 +6763,7 @@ interface SubtleCrypto { ): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */ generateKey( - algorithm: "Ed25519", + algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">, ): Promise; @@ -7977,7 +8210,7 @@ interface WebGL2RenderingContextBase { ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) */ clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D) */ compressedTexImage3D( target: GLenum, level: GLint, @@ -8711,7 +8944,7 @@ interface WebGL2RenderingContextBase { } interface WebGL2RenderingContextOverloads { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bufferData) */ bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void; bufferData( target: GLenum, @@ -8725,7 +8958,7 @@ interface WebGL2RenderingContextOverloads { srcOffset: number, length?: GLuint, ): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bufferSubData) */ bufferSubData( target: GLenum, dstByteOffset: GLintptr, @@ -8978,7 +9211,7 @@ interface WebGL2RenderingContextOverloads { srcOffset?: number, srcLength?: GLuint, ): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ uniformMatrix2fv( location: WebGLUniformLocation | null, transpose: GLboolean, @@ -9406,12 +9639,14 @@ declare var WebGLRenderingContext: { }; interface WebGLRenderingContextBase { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferColorSpace) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawingBufferColorSpace) */ drawingBufferColorSpace: PredefinedColorSpace; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight) */ readonly drawingBufferHeight: GLsizei; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferWidth) */ readonly drawingBufferWidth: GLsizei; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/unpackColorSpace) */ + unpackColorSpace: PredefinedColorSpace; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/activeTexture) */ activeTexture(texture: GLenum): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/attachShader) */ @@ -9730,6 +9965,7 @@ interface WebGLRenderingContextBase { isShader(shader: WebGLShader | null): GLboolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isTexture) */ isTexture(texture: WebGLTexture | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/lineWidth) */ lineWidth(width: GLfloat): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/linkProgram) */ linkProgram(program: WebGLProgram): void; @@ -10489,7 +10725,7 @@ interface WebTransport { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */ - readonly ready: Promise; + readonly ready: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close) */ close(closeInfo?: WebTransportCloseInfo): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ @@ -10612,11 +10848,11 @@ interface WindowOrWorkerGlobalScope { atob(data: string): string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */ btoa(data: string): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) */ clearInterval(id: number | undefined): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */ clearTimeout(id: number | undefined): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) */ createImageBitmap( image: ImageBitmapSource, options?: ImageBitmapOptions, @@ -10631,41 +10867,39 @@ interface WindowOrWorkerGlobalScope { ): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */ fetch(input: RequestInfo | URL, init?: RequestInit): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */ queueMicrotask(callback: VoidFunction): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */ reportError(e: any): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */ setInterval( handler: TimerHandler, timeout?: number, ...arguments: any[] ): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */ setTimeout( handler: TimerHandler, timeout?: number, ...arguments: any[] ): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) */ structuredClone(value: T, options?: StructuredSerializeOptions): T; } -interface WorkerEventMap extends AbstractWorkerEventMap { - message: MessageEvent; - messageerror: MessageEvent; -} +interface WorkerEventMap + extends AbstractWorkerEventMap, + MessageEventTargetEventMap {} /** * This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker) */ -interface Worker extends EventTarget, AbstractWorker { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/message_event) */ - onmessage: ((this: Worker, ev: MessageEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/messageerror_event) */ - onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null; +interface Worker + extends EventTarget, + AbstractWorker, + MessageEventTarget { /** * Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned. * @@ -10846,6 +11080,12 @@ interface WorkerNavigator readonly mediaCapabilities: MediaCapabilities; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/permissions) */ readonly permissions: Permissions; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/serviceWorker) + */ + readonly serviceWorker: ServiceWorkerContainer; } declare var WorkerNavigator: { @@ -10901,11 +11141,11 @@ declare var WritableStreamDefaultController: { */ interface WritableStreamDefaultWriter { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed) */ - readonly closed: Promise; + readonly closed: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize) */ readonly desiredSize: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready) */ - readonly ready: Promise; + readonly ready: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort) */ abort(reason?: any): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close) */ @@ -11494,14 +11734,6 @@ interface WebCodecsErrorCallback { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/name) */ declare var name: string; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */ -declare var onmessage: - | ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) - | null; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */ -declare var onmessageerror: - | ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) - | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) */ declare var onrtctransform: | ((this: DedicatedWorkerGlobalScope, ev: RTCTransformEvent) => any) @@ -11606,11 +11838,11 @@ declare var performance: Performance; declare function atob(data: string): string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */ declare function btoa(data: string): string; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) */ declare function clearInterval(id: number | undefined): void; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */ declare function clearTimeout(id: number | undefined): void; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) */ declare function createImageBitmap( image: ImageBitmapSource, options?: ImageBitmapOptions, @@ -11628,23 +11860,23 @@ declare function fetch( input: RequestInfo | URL, init?: RequestInit, ): Promise; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */ declare function queueMicrotask(callback: VoidFunction): void; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */ declare function reportError(e: any): void; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */ declare function setInterval( handler: TimerHandler, timeout?: number, ...arguments: any[] ): number; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */ declare function setTimeout( handler: TimerHandler, timeout?: number, ...arguments: any[] ): number; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) */ declare function structuredClone( value: T, options?: StructuredSerializeOptions, @@ -11653,6 +11885,14 @@ declare function structuredClone( declare function cancelAnimationFrame(handle: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */ declare function requestAnimationFrame(callback: FrameRequestCallback): number; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */ +declare var onmessage: + | ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) + | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */ +declare var onmessageerror: + | ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) + | null; declare function addEventListener< K extends keyof DedicatedWorkerGlobalScopeEventMap, >( @@ -11716,6 +11956,7 @@ type HashAlgorithmIdentifier = AlgorithmIdentifier; type HeadersInit = [string, string][] | Record | Headers; type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; type ImageBitmapSource = CanvasImageSource | Blob | ImageData; +type ImageBufferSource = AllowSharedBufferSource | ReadableStream; type Int32List = Int32Array | GLint[]; type MessageEventSource = MessagePort | ServiceWorker; type NamedCurve = string; @@ -11750,6 +11991,7 @@ type Transferable = | TransformStream | AudioData | VideoFrame + | RTCDataChannel | ArrayBuffer; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = @@ -11900,7 +12142,9 @@ type OffscreenRenderingContextId = | "webgpu"; type OpusBitstreamFormat = "ogg" | "opus"; type PermissionName = + | "camera" | "geolocation" + | "microphone" | "midi" | "notifications" | "persistent-storage" @@ -11911,6 +12155,7 @@ type PermissionState = "denied" | "granted" | "prompt"; type PredefinedColorSpace = "display-p3" | "srgb"; type PremultiplyAlpha = "default" | "none" | "premultiply"; type PushEncryptionKeyName = "auth" | "p256dh"; +type RTCDataChannelState = "closed" | "closing" | "connecting" | "open"; type RTCEncodedVideoFrameType = "delta" | "empty" | "key"; type ReadableStreamReaderMode = "byob"; type ReadableStreamType = "bytes"; diff --git a/generated/lib.webworker.iterable.d.ts b/generated/lib.webworker.iterable.d.ts index 1a97682..2bfc978 100644 --- a/generated/lib.webworker.iterable.d.ts +++ b/generated/lib.webworker.iterable.d.ts @@ -3,11 +3,6 @@ /// Worker Iterable APIs ///////////////////////////// -interface AbortSignal { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */ - any(signals: Iterable): AbortSignal; -} - interface CSSNumericArray { [Symbol.iterator](): ArrayIterator; entries(): ArrayIterator<[number, CSSNumericValue]>; @@ -118,6 +113,10 @@ interface IDBObjectStore { ): IDBIndex; } +interface ImageTrackList { + [Symbol.iterator](): ArrayIterator; +} + interface MessageEvent { /** @deprecated */ initMessageEvent( @@ -168,7 +167,7 @@ interface SubtleCrypto { ): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */ generateKey( - algorithm: "Ed25519", + algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">, ): Promise; @@ -490,7 +489,7 @@ interface WebGL2RenderingContextOverloads { srcOffset?: number, srcLength?: GLuint, ): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ uniformMatrix2fv( location: WebGLUniformLocation | null, transpose: GLboolean, From 2e2ec0671ab7d715227b66a7eb1c171013d3cf35 Mon Sep 17 00:00:00 2001 From: uhyo Date: Sun, 16 Mar 2025 23:14:41 +0900 Subject: [PATCH 3/5] fix: apply better changes to Float16Array --- build/util/alias.ts | 37 ++-- generated/lib.esnext.float16.d.ts | 289 ++++++++++++++++++++---------- 2 files changed, 221 insertions(+), 105 deletions(-) diff --git a/build/util/alias.ts b/build/util/alias.ts index 247b78a..40c364d 100644 --- a/build/util/alias.ts +++ b/build/util/alias.ts @@ -27,20 +27,37 @@ const es2020TypedBigIntArrays = ["BigInt64Array", "BigUint64Array"]; export const alias = new Map([ [ "TypedNumberArray", - es5TypedArrays.map((name) => ({ - file: "lib.es5.d.ts", - replacement: new Map([["TypedNumberArray", name]]), - })), + es5TypedArrays + .map((name) => ({ + file: "lib.es5.d.ts", + replacement: new Map([["TypedNumberArray", name]]), + })) + .concat([ + { + file: "lib.esnext.float16.d.ts", + replacement: new Map([["TypedNumberArray", "Float16Array"]]), + }, + ]), ], [ "TypedNumberArrayConstructor", - es5TypedArrays.map((name) => ({ - file: "lib.es5.d.ts", - replacement: new Map([ - ["TypedNumberArray", name], - ["TypedNumberArrayConstructor", `${name}Constructor`], + es5TypedArrays + .map((name) => ({ + file: "lib.es5.d.ts", + replacement: new Map([ + ["TypedNumberArray", name], + ["TypedNumberArrayConstructor", `${name}Constructor`], + ]), + })) + .concat([ + { + file: "lib.esnext.float16.d.ts", + replacement: new Map([ + ["TypedNumberArray", "Float16Array"], + ["TypedNumberArrayConstructor", "Float16ArrayConstructor"], + ]), + }, ]), - })), ], [ "TypedNumberArrayConstructorIter", diff --git a/generated/lib.esnext.float16.d.ts b/generated/lib.esnext.float16.d.ts index 2c22f14..e882dca 100644 --- a/generated/lib.esnext.float16.d.ts +++ b/generated/lib.esnext.float16.d.ts @@ -43,7 +43,6 @@ interface Float16Array { * @param end If not specified, length of the this object is used as its default value. */ copyWithin(target: number, start: number, end?: number): this; - /** * Determines whether all the members of an array satisfy the specified test. * @param predicate A function that accepts up to three arguments. The every method calls @@ -52,9 +51,14 @@ interface Float16Array { * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - every( - predicate: (value: number, index: number, array: this) => unknown, - thisArg?: any, + every( + predicate: ( + this: This, + value: number, + index: number, + array: this, + ) => boolean, + thisArg?: This, ): boolean; /** @@ -66,7 +70,6 @@ interface Float16Array { * length+end. */ fill(value: number, start?: number, end?: number): this; - /** * Returns the elements of an array that meet the condition specified in a callback function. * @param predicate A function that accepts up to three arguments. The filter method calls @@ -74,11 +77,15 @@ interface Float16Array { * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - filter( - predicate: (value: number, index: number, array: this) => any, - thisArg?: any, - ): Float16Array; - + filter( + predicate: ( + this: This, + value: number, + index: number, + array: this, + ) => boolean, + thisArg?: This, + ): Float16Array; /** * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. @@ -88,11 +95,10 @@ interface Float16Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - find( - predicate: (value: number, index: number, obj: this) => boolean, - thisArg?: any, + find( + predicate: (this: This, value: number, index: number, obj: this) => boolean, + thisArg?: This, ): number | undefined; - /** * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. @@ -102,9 +108,9 @@ interface Float16Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findIndex( - predicate: (value: number, index: number, obj: this) => boolean, - thisArg?: any, + findIndex( + predicate: (this: This, value: number, index: number, obj: this) => boolean, + thisArg?: This, ): number; /** @@ -138,17 +144,16 @@ interface Float16Array { predicate: (value: number, index: number, array: this) => unknown, thisArg?: any, ): number; - /** * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the + * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - forEach( - callbackfn: (value: number, index: number, array: this) => void, - thisArg?: any, + forEach( + callbackfn: (this: This, value: number, index: number, array: this) => void, + thisArg?: This, ): void; /** @@ -185,7 +190,6 @@ interface Float16Array { * The length of the array. */ readonly length: number; - /** * Calls a defined callback function on each element of an array, and returns an array that * contains the results. @@ -194,39 +198,30 @@ interface Float16Array { * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - map( - callbackfn: (value: number, index: number, array: this) => number, - thisArg?: any, - ): Float16Array; - + map( + callbackfn: ( + this: This, + value: number, + index: number, + array: this, + ) => number, + thisArg?: This, + ): Float16Array; /** * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the * callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. */ - reduce( + reduce( callbackfn: ( - previousValue: number, + previousValue: number | U, currentValue: number, currentIndex: number, array: this, - ) => number, - ): number; - reduce( - callbackfn: ( - previousValue: number, - currentValue: number, - currentIndex: number, - array: this, - ) => number, - initialValue: number, - ): number; - + ) => U, + ): number | U; /** * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next @@ -237,7 +232,7 @@ interface Float16Array { * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduce( + reduce( callbackfn: ( previousValue: U, currentValue: number, @@ -246,35 +241,21 @@ interface Float16Array { ) => U, initialValue: U, ): U; - /** * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls * the callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an - * argument instead of an array value. */ - reduceRight( - callbackfn: ( - previousValue: number, - currentValue: number, - currentIndex: number, - array: this, - ) => number, - ): number; - reduceRight( + reduceRight( callbackfn: ( - previousValue: number, + previousValue: number | U, currentValue: number, currentIndex: number, array: this, - ) => number, - initialValue: number, - ): number; - + ) => U, + ): number | U; /** * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an @@ -285,7 +266,7 @@ interface Float16Array { * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduceRight( + reduceRight( callbackfn: ( previousValue: U, currentValue: number, @@ -313,7 +294,6 @@ interface Float16Array { * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ slice(start?: number, end?: number): Float16Array; - /** * Determines whether the specified callback function returns true for any element of an array. * @param predicate A function that accepts up to three arguments. The some method calls @@ -322,9 +302,14 @@ interface Float16Array { * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - some( - predicate: (value: number, index: number, array: this) => unknown, - thisArg?: any, + some( + predicate: ( + this: This, + value: number, + index: number, + array: this, + ) => boolean, + thisArg?: This, ): boolean; /** @@ -411,6 +396,115 @@ interface Float16Array { readonly [Symbol.toStringTag]: "Float16Array"; } +// /** +// * Determines whether all the members of an array satisfy the specified test. +// * @param predicate A function that accepts up to three arguments. The every method calls +// * the predicate function for each element in the array until the predicate returns a value +// * which is coercible to the Boolean value false, or until the end of the array. +// * @param thisArg An object to which the this keyword can refer in the predicate function. +// * If thisArg is omitted, undefined is used as the this value. +// */ +// every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean; +// /** +// * Returns the elements of an array that meet the condition specified in a callback function. +// * @param predicate A function that accepts up to three arguments. The filter method calls +// * the predicate function one time for each element in the array. +// * @param thisArg An object to which the this keyword can refer in the predicate function. +// * If thisArg is omitted, undefined is used as the this value. +// */ +// filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Float16Array; +// /** +// * Returns the value of the first element in the array where predicate is true, and undefined +// * otherwise. +// * @param predicate find calls predicate once for each element of the array, in ascending +// * order, until it finds one where predicate returns true. If such an element is found, find +// * immediately returns that element value. Otherwise, find returns undefined. +// * @param thisArg If provided, it will be used as the this value for each invocation of +// * predicate. If it is not provided, undefined is used instead. +// */ +// find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined; +// /** +// * Returns the index of the first element in the array where predicate is true, and -1 +// * otherwise. +// * @param predicate find calls predicate once for each element of the array, in ascending +// * order, until it finds one where predicate returns true. If such an element is found, +// * findIndex immediately returns that element index. Otherwise, findIndex returns -1. +// * @param thisArg If provided, it will be used as the this value for each invocation of +// * predicate. If it is not provided, undefined is used instead. +// */ +// findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number; +// /** +// * Performs the specified action for each element in an array. +// * @param callbackfn A function that accepts up to three arguments. forEach calls the +// * callbackfn function one time for each element in the array. +// * @param thisArg An object to which the this keyword can refer in the callbackfn function. +// * If thisArg is omitted, undefined is used as the this value. +// */ +// forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void; +// /** +// * Calls a defined callback function on each element of an array, and returns an array that +// * contains the results. +// * @param callbackfn A function that accepts up to three arguments. The map method calls the +// * callbackfn function one time for each element in the array. +// * @param thisArg An object to which the this keyword can refer in the callbackfn function. +// * If thisArg is omitted, undefined is used as the this value. +// */ +// map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Float16Array; +// /** +// * Calls the specified callback function for all the elements in an array. The return value of +// * the callback function is the accumulated result, and is provided as an argument in the next +// * call to the callback function. +// * @param callbackfn A function that accepts up to four arguments. The reduce method calls the +// * callbackfn function one time for each element in the array. +// * @param initialValue If initialValue is specified, it is used as the initial value to start +// * the accumulation. The first call to the callbackfn function provides this value as an argument +// * instead of an array value. +// */ +// reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number; +// reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number; +// /** +// * Calls the specified callback function for all the elements in an array. The return value of +// * the callback function is the accumulated result, and is provided as an argument in the next +// * call to the callback function. +// * @param callbackfn A function that accepts up to four arguments. The reduce method calls the +// * callbackfn function one time for each element in the array. +// * @param initialValue If initialValue is specified, it is used as the initial value to start +// * the accumulation. The first call to the callbackfn function provides this value as an argument +// * instead of an array value. +// */ +// reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U; +// /** +// * Calls the specified callback function for all the elements in an array, in descending order. +// * The return value of the callback function is the accumulated result, and is provided as an +// * argument in the next call to the callback function. +// * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls +// * the callbackfn function one time for each element in the array. +// * @param initialValue If initialValue is specified, it is used as the initial value to start +// * the accumulation. The first call to the callbackfn function provides this value as an +// * argument instead of an array value. +// */ +// reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number; +// reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number; +// /** +// * Calls the specified callback function for all the elements in an array, in descending order. +// * The return value of the callback function is the accumulated result, and is provided as an +// * argument in the next call to the callback function. +// * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls +// * the callbackfn function one time for each element in the array. +// * @param initialValue If initialValue is specified, it is used as the initial value to start +// * the accumulation. The first call to the callbackfn function provides this value as an argument +// * instead of an array value. +// */ +// reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U; +// /** +// * Determines whether the specified callback function returns true for any element of an array. +// * @param predicate A function that accepts up to three arguments. The some method calls +// * the predicate function for each element in the array until the predicate returns a value +// * which is coercible to the Boolean value true, or until the end of the array. +// * @param thisArg An object to which the this keyword can refer in the predicate function. +// * If thisArg is omitted, undefined is used as the this value. +// */ +// some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean; interface Float16ArrayConstructor { readonly prototype: Float16Array; @@ -432,43 +526,48 @@ interface Float16ArrayConstructor { * @param items A set of elements to include in the new array object. */ of(...items: number[]): Float16Array; - /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. */ from(arrayLike: ArrayLike): Float16Array; - /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from( + from( arrayLike: ArrayLike, - mapfn: (v: T, k: number) => number, - thisArg?: any, - ): Float16Array; - - /** - * Creates an array from an array-like or iterable object. - * @param elements An iterable object to convert to an array. - */ - from(elements: Iterable): Float16Array; - - /** - * Creates an array from an array-like or iterable object. - * @param elements An iterable object to convert to an array. - * @param mapfn A mapping function to call on every element of the array. - * @param thisArg Value of 'this' used to invoke the mapfn. - */ - from( - elements: Iterable, - mapfn?: (v: T, k: number) => number, - thisArg?: any, + mapfn: (this: This, v: T, k: number) => number, + thisArg?: This, ): Float16Array; } +// /** +// * Creates an array from an array-like or iterable object. +// * @param arrayLike An array-like object to convert to an array. +// */ +// from(arrayLike: ArrayLike): Float16Array; +// /** +// * Creates an array from an array-like or iterable object. +// * @param arrayLike An array-like object to convert to an array. +// * @param mapfn A mapping function to call on every element of the array. +// * @param thisArg Value of 'this' used to invoke the mapfn. +// */ +// from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => number, thisArg?: any): Float16Array; +// /** +// * Creates an array from an array-like or iterable object. +// * @param elements An iterable object to convert to an array. +// */ +// from(elements: Iterable): Float16Array; +// /** +// * Creates an array from an array-like or iterable object. +// * @param elements An iterable object to convert to an array. +// * @param mapfn A mapping function to call on every element of the array. +// * @param thisArg Value of 'this' used to invoke the mapfn. +// */ +// from(elements: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Float16Array; + declare var Float16Array: Float16ArrayConstructor; interface Math { From c4e536206cf8a689a25da62f57cabf0a99037617 Mon Sep 17 00:00:00 2001 From: uhyo Date: Sun, 16 Mar 2025 23:16:00 +0900 Subject: [PATCH 4/5] docs: build diff --- docs/diff.md | 1 + docs/diff/esnext.float16.d.ts.md | 332 +++++++++++++++++++++++++++++++ 2 files changed, 333 insertions(+) create mode 100644 docs/diff/esnext.float16.d.ts.md diff --git a/docs/diff.md b/docs/diff.md index 96cf76a..ed94e27 100644 --- a/docs/diff.md +++ b/docs/diff.md @@ -24,3 +24,4 @@ The following files are improved in better-typescript-lib: - [es2021.promise.d.ts](./diff/es2021.promise.d.ts.md) - [es2022.object.d.ts](./diff/es2022.object.d.ts.md) - [esnext.disposable.d.ts](./diff/esnext.disposable.d.ts.md) +- [esnext.float16.d.ts](./diff/esnext.float16.d.ts.md) diff --git a/docs/diff/esnext.float16.d.ts.md b/docs/diff/esnext.float16.d.ts.md new file mode 100644 index 0000000..ec26322 --- /dev/null +++ b/docs/diff/esnext.float16.d.ts.md @@ -0,0 +1,332 @@ +# esnext.float16.d.ts Diffs + +```diff +Index: esnext.float16.d.ts +=================================================================== +--- esnext.float16.d.ts ++++ esnext.float16.d.ts +@@ -41,20 +41,24 @@ + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): this; +- + /** + * Determines whether all the members of an array satisfy the specified test. + * @param predicate A function that accepts up to three arguments. The every method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value false, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ +- every( +- predicate: (value: number, index: number, array: this) => unknown, +- thisArg?: any, ++ every( ++ predicate: ( ++ this: This, ++ value: number, ++ index: number, ++ array: this, ++ ) => boolean, ++ thisArg?: This, + ): boolean; + + /** + * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array +@@ -64,21 +68,24 @@ + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): this; +- + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param predicate A function that accepts up to three arguments. The filter method calls + * the predicate function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ +- filter( +- predicate: (value: number, index: number, array: this) => any, +- thisArg?: any, +- ): Float16Array; +- ++ filter( ++ predicate: ( ++ this: This, ++ value: number, ++ index: number, ++ array: this, ++ ) => boolean, ++ thisArg?: This, ++ ): Float16Array; + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending +@@ -86,13 +93,12 @@ + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ +- find( +- predicate: (value: number, index: number, obj: this) => boolean, +- thisArg?: any, ++ find( ++ predicate: (this: This, value: number, index: number, obj: this) => boolean, ++ thisArg?: This, + ): number | undefined; +- + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending +@@ -100,11 +106,11 @@ + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ +- findIndex( +- predicate: (value: number, index: number, obj: this) => boolean, +- thisArg?: any, ++ findIndex( ++ predicate: (this: This, value: number, index: number, obj: this) => boolean, ++ thisArg?: This, + ): number; + + /** + * Returns the value of the last element in the array where predicate is true, and undefined +@@ -136,19 +142,18 @@ + findLastIndex( + predicate: (value: number, index: number, array: this) => unknown, + thisArg?: any, + ): number; +- + /** + * Performs the specified action for each element in an array. +- * @param callbackfn A function that accepts up to three arguments. forEach calls the ++ * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. +- * @param thisArg An object to which the this keyword can refer in the callbackfn function. ++ * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ +- forEach( +- callbackfn: (value: number, index: number, array: this) => void, +- thisArg?: any, ++ forEach( ++ callbackfn: (this: This, value: number, index: number, array: this) => void, ++ thisArg?: This, + ): void; + + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. +@@ -183,50 +188,40 @@ + /** + * The length of the array. + */ + readonly length: number; +- + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ +- map( +- callbackfn: (value: number, index: number, array: this) => number, +- thisArg?: any, +- ): Float16Array; +- ++ map( ++ callbackfn: ( ++ this: This, ++ value: number, ++ index: number, ++ array: this, ++ ) => number, ++ thisArg?: This, ++ ): Float16Array; + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. +- * @param initialValue If initialValue is specified, it is used as the initial value to start +- * the accumulation. The first call to the callbackfn function provides this value as an argument +- * instead of an array value. + */ +- reduce( ++ reduce( + callbackfn: ( +- previousValue: number, ++ previousValue: number | U, + currentValue: number, + currentIndex: number, + array: this, +- ) => number, +- ): number; +- reduce( +- callbackfn: ( +- previousValue: number, +- currentValue: number, +- currentIndex: number, +- array: this, +- ) => number, +- initialValue: number, +- ): number; +- ++ ) => U, ++ ): number | U; + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. +@@ -235,46 +230,32 @@ + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ +- reduce( ++ reduce( + callbackfn: ( + previousValue: U, + currentValue: number, + currentIndex: number, + array: this, + ) => U, + initialValue: U, + ): U; +- + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. +- * @param initialValue If initialValue is specified, it is used as the initial value to start +- * the accumulation. The first call to the callbackfn function provides this value as an +- * argument instead of an array value. + */ +- reduceRight( ++ reduceRight( + callbackfn: ( +- previousValue: number, ++ previousValue: number | U, + currentValue: number, + currentIndex: number, + array: this, +- ) => number, +- ): number; +- reduceRight( +- callbackfn: ( +- previousValue: number, +- currentValue: number, +- currentIndex: number, +- array: this, +- ) => number, +- initialValue: number, +- ): number; +- ++ ) => U, ++ ): number | U; + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. +@@ -283,9 +264,9 @@ + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ +- reduceRight( ++ reduceRight( + callbackfn: ( + previousValue: U, + currentValue: number, + currentIndex: number, +@@ -311,20 +292,24 @@ + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. + */ + slice(start?: number, end?: number): Float16Array; +- + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param predicate A function that accepts up to three arguments. The some method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value true, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ +- some( +- predicate: (value: number, index: number, array: this) => unknown, +- thisArg?: any, ++ some( ++ predicate: ( ++ this: This, ++ value: number, ++ index: number, ++ array: this, ++ ) => boolean, ++ thisArg?: This, + ): boolean; + + /** + * Sorts an array. +@@ -430,44 +415,24 @@ + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Float16Array; +- + /** + * Creates an array from an array-like or iterable object. +- * @param arrayLike An array-like object to convert to an array. ++ * @param arrayLike An array-like or iterable object to convert to an array. + */ + from(arrayLike: ArrayLike): Float16Array; +- + /** + * Creates an array from an array-like or iterable object. +- * @param arrayLike An array-like object to convert to an array. ++ * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ +- from( ++ from( + arrayLike: ArrayLike, +- mapfn: (v: T, k: number) => number, +- thisArg?: any, ++ mapfn: (this: This, v: T, k: number) => number, ++ thisArg?: This, + ): Float16Array; +- +- /** +- * Creates an array from an array-like or iterable object. +- * @param elements An iterable object to convert to an array. +- */ +- from(elements: Iterable): Float16Array; +- +- /** +- * Creates an array from an array-like or iterable object. +- * @param elements An iterable object to convert to an array. +- * @param mapfn A mapping function to call on every element of the array. +- * @param thisArg Value of 'this' used to invoke the mapfn. +- */ +- from( +- elements: Iterable, +- mapfn?: (v: T, k: number) => number, +- thisArg?: any, +- ): Float16Array; + } + declare var Float16Array: Float16ArrayConstructor; + + interface Math { + +``` From c67d0409768178884e067392c0fd70b147cd8efd Mon Sep 17 00:00:00 2001 From: uhyo Date: Sun, 16 Mar 2025 23:22:03 +0900 Subject: [PATCH 5/5] fix: fix ViewTransitionTypeSet --- docs/diff/dom.generated.d.ts.md | 23 +++++++++++++++++++++-- generated/lib.dom.d.ts | 11 ++++------- lib/lib.dom.d.ts | 7 +++++++ 3 files changed, 32 insertions(+), 9 deletions(-) diff --git a/docs/diff/dom.generated.d.ts.md b/docs/diff/dom.generated.d.ts.md index cd0d11b..708256c 100644 --- a/docs/diff/dom.generated.d.ts.md +++ b/docs/diff/dom.generated.d.ts.md @@ -214,7 +214,26 @@ Index: dom.generated.d.ts } declare var RTCStatsReport: { -@@ -35597,13 +35619,16 @@ +@@ -29203,15 +29225,11 @@ + new (): ViewTransition; + }; + + interface ViewTransitionTypeSet { +- forEach( +- callbackfn: ( +- value: string, +- key: string, +- parent: ViewTransitionTypeSet, +- ) => void, +- thisArg?: any, ++ forEach( ++ callbackfn: (this: This, value: string, key: string, parent: this) => void, ++ thisArg?: This, + ): void; + } + + declare var ViewTransitionTypeSet: { +@@ -35597,13 +35615,16 @@ handler: TimerHandler, timeout?: number, ...arguments: any[] @@ -234,7 +253,7 @@ Index: dom.generated.d.ts declare var sessionStorage: Storage; declare function addEventListener( type: K, -@@ -36287,4 +36312,125 @@ +@@ -36287,4 +36308,125 @@ | "blob" | "document" | "json" diff --git a/generated/lib.dom.d.ts b/generated/lib.dom.d.ts index 766330c..ac49123 100644 --- a/generated/lib.dom.d.ts +++ b/generated/lib.dom.d.ts @@ -29245,15 +29245,12 @@ declare var ViewTransition: { }; interface ViewTransitionTypeSet { - forEach( - callbackfn: ( - value: string, - key: string, - parent: ViewTransitionTypeSet, - ) => void, - thisArg?: any, + forEach( + callbackfn: (this: This, value: string, key: string, parent: this) => void, + thisArg?: This, ): void; } +// forEach(callbackfn: (value: string, key: string, parent: ViewTransitionTypeSet) => void, thisArg?: any): void; declare var ViewTransitionTypeSet: { prototype: ViewTransitionTypeSet; diff --git a/lib/lib.dom.d.ts b/lib/lib.dom.d.ts index 986bc4a..493ec62 100644 --- a/lib/lib.dom.d.ts +++ b/lib/lib.dom.d.ts @@ -230,6 +230,13 @@ interface CustomStateSet { ): void; } +interface ViewTransitionTypeSet { + forEach( + callbackfn: (this: This, value: string, key: string, parent: this) => void, + thisArg?: This, + ): void; +} + interface Document extends Node, DocumentOrShadowRoot,