diff --git a/TypeScript b/TypeScript index 63717cf..6ea273c 160000 --- a/TypeScript +++ b/TypeScript @@ -1 +1 @@ -Subproject commit 63717cf44a64585175c76c336c8f8d87d5384d16 +Subproject commit 6ea273cdcca99db809074d2b2d38d0e5b59ee81b diff --git a/docs/diff/dom.generated.d.ts.md b/docs/diff/dom.generated.d.ts.md index 184e1a8..9b70ff1 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 -@@ -2943,11 +2943,16 @@ +@@ -2944,11 +2944,16 @@ }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParamMap) */ @@ -25,7 +25,7 @@ Index: dom.generated.d.ts } declare var AudioParamMap: { -@@ -3364,9 +3369,9 @@ +@@ -3369,9 +3374,9 @@ blob(): 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; } -@@ -8828,11 +8833,11 @@ +@@ -8872,11 +8877,11 @@ }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventCounts) */ @@ -51,7 +51,7 @@ Index: dom.generated.d.ts } declare var EventCounts: { -@@ -9374,11 +9379,16 @@ +@@ -9420,11 +9425,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) */ @@ -71,7 +71,7 @@ Index: dom.generated.d.ts addEventListener( type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, -@@ -17020,11 +17030,16 @@ +@@ -17139,11 +17149,16 @@ * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInputMap) */ @@ -91,7 +91,7 @@ Index: dom.generated.d.ts } declare var MIDIInputMap: { -@@ -17087,11 +17102,16 @@ +@@ -17206,11 +17221,16 @@ * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutputMap) */ @@ -111,7 +111,7 @@ Index: dom.generated.d.ts } declare var MIDIOutputMap: { -@@ -21372,11 +21392,11 @@ +@@ -21527,11 +21547,11 @@ }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCStatsReport) */ @@ -126,7 +126,7 @@ Index: dom.generated.d.ts } declare var RTCStatsReport: { -@@ -34051,13 +34071,20 @@ +@@ -34291,13 +34311,16 @@ handler: TimerHandler, timeout?: number, ...arguments: any[] @@ -135,11 +135,7 @@ Index: dom.generated.d.ts /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */ -declare function structuredClone( +declare function structuredClone< -+ const T extends BetterTypeScriptLibInternals.StructuredClone.NeverOrUnknown< -+ BetterTypeScriptLibInternals.StructuredClone.StructuredCloneOutput< -+ BetterTypeScriptLibInternals.StructuredClone.AvoidCyclicConstraint -+ > -+ >, ++ const T extends BetterTypeScriptLibInternals.StructuredClone.Constraint, +>( value: T, options?: StructuredSerializeOptions, @@ -149,7 +145,7 @@ Index: dom.generated.d.ts declare var sessionStorage: Storage; declare function addEventListener( type: K, -@@ -34712,4 +34739,119 @@ +@@ -34956,4 +34979,125 @@ | "blob" | "document" | "json" @@ -265,8 +261,14 @@ Index: dom.generated.d.ts + + type AvoidCyclicConstraint = [T] extends [infer R] ? R : never; + -+ // 上限が不正にきつくなっているのを無視する + type NeverOrUnknown = [T] extends [never] ? never : unknown; ++ ++ export type Constraint = ++ BetterTypeScriptLibInternals.StructuredClone.NeverOrUnknown< ++ BetterTypeScriptLibInternals.StructuredClone.StructuredCloneOutput< ++ BetterTypeScriptLibInternals.StructuredClone.AvoidCyclicConstraint ++ > ++ >; + } +} diff --git a/docs/diff/es5.d.ts.md b/docs/diff/es5.d.ts.md index ef30164..b305afe 100644 --- a/docs/diff/es5.d.ts.md +++ b/docs/diff/es5.d.ts.md @@ -296,7 +296,7 @@ Index: es5.d.ts /** * Finds the first substring match in a regular expression search. -@@ -1199,37 +1284,65 @@ +@@ -1200,37 +1285,65 @@ interface JSON { /** * Converts a JavaScript Object Notation (JSON) string into an object. @@ -375,7 +375,7 @@ Index: es5.d.ts /** * An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format. -@@ -1293,23 +1406,25 @@ +@@ -1294,23 +1407,25 @@ * 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. @@ -408,7 +408,7 @@ Index: es5.d.ts /** * 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 -@@ -1317,117 +1432,102 @@ +@@ -1318,117 +1433,102 @@ * 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. @@ -561,7 +561,7 @@ Index: es5.d.ts initialValue: U, ): U; -@@ -1551,23 +1651,25 @@ +@@ -1552,23 +1652,25 @@ * 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. @@ -594,7 +594,7 @@ Index: es5.d.ts /** * 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 -@@ -1575,133 +1677,116 @@ +@@ -1576,133 +1678,116 @@ * 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. @@ -765,7 +765,7 @@ Index: es5.d.ts declare var Array: ArrayConstructor; -@@ -1715,9 +1800,11 @@ +@@ -1716,9 +1801,11 @@ } declare type PromiseConstructorLike = new ( @@ -778,7 +778,7 @@ Index: es5.d.ts ) => void, ) => PromiseLike; -@@ -1727,52 +1814,56 @@ +@@ -1728,52 +1815,56 @@ * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. @@ -865,7 +865,7 @@ Index: es5.d.ts /** * Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to `never`. This emulates the behavior of `await`. -@@ -2131,20 +2222,24 @@ +@@ -2137,20 +2228,24 @@ * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ @@ -894,7 +894,7 @@ Index: es5.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -2154,21 +2249,24 @@ +@@ -2160,21 +2255,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -924,7 +924,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 -@@ -2176,13 +2274,12 @@ +@@ -2182,13 +2280,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. @@ -941,7 +941,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 -@@ -2190,23 +2287,22 @@ +@@ -2196,23 +2293,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. @@ -971,7 +971,7 @@ Index: es5.d.ts /** * Returns the index of the first occurrence of a value in an array. -@@ -2234,50 +2330,40 @@ +@@ -2240,50 +2336,40 @@ /** * The length of the array. */ @@ -1035,7 +1035,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. -@@ -2286,46 +2372,32 @@ +@@ -2292,46 +2378,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. @@ -1089,7 +1089,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. -@@ -2334,14 +2406,14 @@ +@@ -2340,14 +2412,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. @@ -1106,7 +1106,7 @@ Index: es5.d.ts initialValue: U, ): U; -@@ -2362,20 +2434,24 @@ +@@ -2368,20 +2440,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'. */ @@ -1135,7 +1135,7 @@ Index: es5.d.ts /** * Sorts an array. -@@ -2430,25 +2506,23 @@ +@@ -2436,25 +2512,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -1164,7 +1164,7 @@ Index: es5.d.ts } declare var Int8Array: Int8ArrayConstructor; -@@ -2486,20 +2560,24 @@ +@@ -2492,20 +2566,24 @@ * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ @@ -1193,7 +1193,7 @@ Index: es5.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -2509,21 +2587,24 @@ +@@ -2515,21 +2593,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -1223,7 +1223,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 -@@ -2531,13 +2612,12 @@ +@@ -2537,13 +2618,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. @@ -1240,7 +1240,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 -@@ -2545,23 +2625,22 @@ +@@ -2551,23 +2631,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. @@ -1270,7 +1270,7 @@ Index: es5.d.ts /** * Returns the index of the first occurrence of a value in an array. -@@ -2589,50 +2668,40 @@ +@@ -2595,50 +2674,40 @@ /** * The length of the array. */ @@ -1334,7 +1334,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. -@@ -2641,46 +2710,32 @@ +@@ -2647,46 +2716,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. @@ -1388,7 +1388,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. -@@ -2689,14 +2744,14 @@ +@@ -2695,14 +2750,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. @@ -1405,7 +1405,7 @@ Index: es5.d.ts initialValue: U, ): U; -@@ -2717,20 +2772,24 @@ +@@ -2723,20 +2778,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'. */ @@ -1434,7 +1434,7 @@ Index: es5.d.ts /** * Sorts an array. -@@ -2786,25 +2845,23 @@ +@@ -2792,25 +2851,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -1463,7 +1463,7 @@ Index: es5.d.ts } declare var Uint8Array: Uint8ArrayConstructor; -@@ -2842,24 +2899,24 @@ +@@ -2848,24 +2905,24 @@ * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ @@ -1493,7 +1493,7 @@ Index: es5.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -2869,21 +2926,24 @@ +@@ -2875,21 +2932,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -1523,7 +1523,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 -@@ -2891,17 +2951,12 @@ +@@ -2897,17 +2957,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 +1544,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 -@@ -2909,31 +2964,22 @@ +@@ -2915,31 +2970,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. @@ -1582,7 +1582,7 @@ Index: es5.d.ts /** * Returns the index of the first occurrence of a value in an array. -@@ -2961,54 +3007,40 @@ +@@ -2967,54 +3013,40 @@ /** * The length of the array. */ @@ -1646,7 +1646,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. -@@ -3017,46 +3049,32 @@ +@@ -3023,46 +3055,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. @@ -1700,7 +1700,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. -@@ -3065,14 +3083,14 @@ +@@ -3071,14 +3089,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. @@ -1717,7 +1717,7 @@ Index: es5.d.ts initialValue: U, ): U; -@@ -3093,24 +3111,24 @@ +@@ -3099,24 +3117,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'. */ @@ -1747,7 +1747,7 @@ Index: es5.d.ts /** * Sorts an array. -@@ -3166,25 +3184,23 @@ +@@ -3172,25 +3190,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -1776,7 +1776,7 @@ Index: es5.d.ts } declare var Uint8ClampedArray: Uint8ClampedArrayConstructor; -@@ -3222,20 +3238,24 @@ +@@ -3228,20 +3244,24 @@ * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ @@ -1805,7 +1805,7 @@ Index: es5.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -3245,21 +3265,24 @@ +@@ -3251,21 +3271,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -1835,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 -@@ -3267,13 +3290,12 @@ +@@ -3273,13 +3296,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. @@ -1852,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 -@@ -3281,23 +3303,22 @@ +@@ -3287,23 +3309,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. @@ -1882,7 +1882,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. -@@ -3324,50 +3345,40 @@ +@@ -3330,50 +3351,40 @@ /** * The length of the array. */ @@ -1946,7 +1946,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. -@@ -3376,46 +3387,32 @@ +@@ -3382,46 +3393,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. @@ -2000,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. -@@ -3424,14 +3421,14 @@ +@@ -3430,14 +3427,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. @@ -2017,7 +2017,7 @@ Index: es5.d.ts initialValue: U, ): U; -@@ -3452,20 +3449,24 @@ +@@ -3458,20 +3455,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'. */ @@ -2046,7 +2046,7 @@ Index: es5.d.ts /** * Sorts an array. -@@ -3521,25 +3522,23 @@ +@@ -3527,25 +3528,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -2075,7 +2075,7 @@ Index: es5.d.ts } declare var Int16Array: Int16ArrayConstructor; -@@ -3577,20 +3576,24 @@ +@@ -3583,20 +3582,24 @@ * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ @@ -2104,7 +2104,7 @@ Index: es5.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -3600,21 +3603,24 @@ +@@ -3606,21 +3609,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -2134,7 +2134,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 -@@ -3622,13 +3628,12 @@ +@@ -3628,13 +3634,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. @@ -2151,7 +2151,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 -@@ -3636,23 +3641,22 @@ +@@ -3642,23 +3647,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. @@ -2181,7 +2181,7 @@ Index: es5.d.ts /** * Returns the index of the first occurrence of a value in an array. -@@ -3680,50 +3684,40 @@ +@@ -3686,50 +3690,40 @@ /** * The length of the array. */ @@ -2245,7 +2245,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. -@@ -3732,46 +3726,32 @@ +@@ -3738,46 +3732,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. @@ -2299,7 +2299,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. -@@ -3780,14 +3760,14 @@ +@@ -3786,14 +3766,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. @@ -2316,7 +2316,7 @@ Index: es5.d.ts initialValue: U, ): U; -@@ -3808,20 +3788,24 @@ +@@ -3814,20 +3794,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'. */ @@ -2345,7 +2345,7 @@ Index: es5.d.ts /** * Sorts an array. -@@ -3877,25 +3861,23 @@ +@@ -3883,25 +3867,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -2374,7 +2374,7 @@ Index: es5.d.ts } declare var Uint16Array: Uint16ArrayConstructor; /** -@@ -3932,20 +3914,24 @@ +@@ -3938,20 +3920,24 @@ * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ @@ -2403,7 +2403,7 @@ Index: es5.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -3955,21 +3941,24 @@ +@@ -3961,21 +3947,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -2433,7 +2433,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 -@@ -3977,13 +3966,12 @@ +@@ -3983,13 +3972,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. @@ -2450,7 +2450,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 -@@ -3991,23 +3979,22 @@ +@@ -3997,23 +3985,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. @@ -2480,7 +2480,7 @@ Index: es5.d.ts /** * Returns the index of the first occurrence of a value in an array. -@@ -4035,50 +4022,40 @@ +@@ -4041,50 +4028,40 @@ /** * The length of the array. */ @@ -2544,7 +2544,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. -@@ -4087,46 +4064,32 @@ +@@ -4093,46 +4070,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. @@ -2598,7 +2598,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. -@@ -4135,14 +4098,14 @@ +@@ -4141,14 +4104,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. @@ -2615,7 +2615,7 @@ Index: es5.d.ts initialValue: U, ): U; -@@ -4163,20 +4126,24 @@ +@@ -4169,20 +4132,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'. */ @@ -2644,7 +2644,7 @@ Index: es5.d.ts /** * Sorts an array. -@@ -4232,25 +4199,23 @@ +@@ -4238,25 +4205,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -2673,7 +2673,7 @@ Index: es5.d.ts } declare var Int32Array: Int32ArrayConstructor; -@@ -4288,20 +4253,24 @@ +@@ -4294,20 +4259,24 @@ * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ @@ -2702,7 +2702,7 @@ Index: es5.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -4311,21 +4280,24 @@ +@@ -4317,21 +4286,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -2732,7 +2732,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 -@@ -4333,13 +4305,12 @@ +@@ -4339,13 +4311,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. @@ -2749,7 +2749,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 -@@ -4347,23 +4318,22 @@ +@@ -4353,23 +4324,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. @@ -2779,7 +2779,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. -@@ -4390,50 +4360,40 @@ +@@ -4396,50 +4366,40 @@ /** * The length of the array. */ @@ -2843,7 +2843,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. -@@ -4442,46 +4402,32 @@ +@@ -4448,46 +4408,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. @@ -2897,7 +2897,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. -@@ -4490,14 +4436,14 @@ +@@ -4496,14 +4442,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. @@ -2914,7 +2914,7 @@ Index: es5.d.ts initialValue: U, ): U; -@@ -4518,20 +4464,24 @@ +@@ -4524,20 +4470,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'. */ @@ -2943,7 +2943,7 @@ Index: es5.d.ts /** * Sorts an array. -@@ -4587,25 +4537,23 @@ +@@ -4593,25 +4543,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -2972,7 +2972,7 @@ Index: es5.d.ts } declare var Uint32Array: Uint32ArrayConstructor; -@@ -4643,20 +4591,24 @@ +@@ -4649,20 +4597,24 @@ * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ @@ -3001,7 +3001,7 @@ Index: es5.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -4666,21 +4618,24 @@ +@@ -4672,21 +4624,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -3031,7 +3031,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 -@@ -4688,13 +4643,12 @@ +@@ -4694,13 +4649,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. @@ -3048,7 +3048,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 -@@ -4702,23 +4656,22 @@ +@@ -4708,23 +4662,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. @@ -3078,7 +3078,7 @@ Index: es5.d.ts /** * Returns the index of the first occurrence of a value in an array. -@@ -4746,50 +4699,40 @@ +@@ -4752,50 +4705,40 @@ /** * The length of the array. */ @@ -3142,7 +3142,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. -@@ -4798,46 +4741,32 @@ +@@ -4804,46 +4747,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. @@ -3196,7 +3196,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. -@@ -4846,14 +4775,14 @@ +@@ -4852,14 +4781,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. @@ -3213,7 +3213,7 @@ Index: es5.d.ts initialValue: U, ): U; -@@ -4874,20 +4803,24 @@ +@@ -4880,20 +4809,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'. */ @@ -3242,7 +3242,7 @@ Index: es5.d.ts /** * Sorts an array. -@@ -4943,25 +4876,23 @@ +@@ -4949,25 +4882,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -3271,7 +3271,7 @@ Index: es5.d.ts } declare var Float32Array: Float32ArrayConstructor; -@@ -4999,20 +4930,24 @@ +@@ -5005,20 +4936,24 @@ * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ @@ -3300,7 +3300,7 @@ Index: es5.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -5022,21 +4957,24 @@ +@@ -5028,21 +4963,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -3330,7 +3330,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 -@@ -5044,13 +4982,12 @@ +@@ -5050,13 +4988,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. @@ -3347,7 +3347,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 -@@ -5058,23 +4995,22 @@ +@@ -5064,23 +5001,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. @@ -3377,7 +3377,7 @@ Index: es5.d.ts /** * Returns the index of the first occurrence of a value in an array. -@@ -5102,50 +5038,40 @@ +@@ -5108,50 +5044,40 @@ /** * The length of the array. */ @@ -3441,7 +3441,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. -@@ -5154,46 +5080,32 @@ +@@ -5160,46 +5086,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. @@ -3495,7 +3495,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. -@@ -5202,14 +5114,14 @@ +@@ -5208,14 +5120,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. @@ -3512,7 +3512,7 @@ Index: es5.d.ts initialValue: U, ): U; -@@ -5230,20 +5142,24 @@ +@@ -5236,20 +5148,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'. */ @@ -3541,7 +3541,7 @@ Index: es5.d.ts /** * Sorts an array. -@@ -5299,25 +5215,23 @@ +@@ -5305,25 +5221,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -3570,7 +3570,7 @@ Index: es5.d.ts } declare var Float64Array: Float64ArrayConstructor; -@@ -5536,4 +5450,33 @@ +@@ -5551,4 +5465,33 @@ locales?: string | string[], options?: Intl.DateTimeFormatOptions, ): string; diff --git a/docs/diff/esnext.disposable.d.ts.md b/docs/diff/esnext.disposable.d.ts.md index 3c614b5..c21b04b 100644 --- a/docs/diff/esnext.disposable.d.ts.md +++ b/docs/diff/esnext.disposable.d.ts.md @@ -16,7 +16,7 @@ Index: esnext.disposable.d.ts + suppressed: unknown; } - interface SuppressedErrorConstructor extends ErrorConstructor { + interface SuppressedErrorConstructor { new (error: any, suppressed: any, message?: string): SuppressedError; ``` diff --git a/generated/lib.dom.asynciterable.d.ts b/generated/lib.dom.asynciterable.d.ts new file mode 100644 index 0000000..afefa6d --- /dev/null +++ b/generated/lib.dom.asynciterable.d.ts @@ -0,0 +1,11 @@ +/// +///////////////////////////// +/// Window Async Iterable APIs +///////////////////////////// + +interface FileSystemDirectoryHandle { + [Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>; + entries(): AsyncIterableIterator<[string, FileSystemHandle]>; + keys(): AsyncIterableIterator; + values(): AsyncIterableIterator; +} diff --git a/generated/lib.dom.d.ts b/generated/lib.dom.d.ts index 8a877e7..c499c3f 100644 --- a/generated/lib.dom.d.ts +++ b/generated/lib.dom.d.ts @@ -119,6 +119,7 @@ interface AuthenticationExtensionsClientInputs { appid?: string; credProps?: boolean; hmacCreateSecret?: boolean; + minPinLength?: boolean; } interface AuthenticationExtensionsClientOutputs { @@ -444,7 +445,7 @@ interface ElementDefinitionOptions { } interface EncodedVideoChunkInit { - data: BufferSource; + data: AllowSharedBufferSource; duration?: number; timestamp: number; type: EncodedVideoChunkType; @@ -535,7 +536,6 @@ interface FontFaceDescriptors { stretch?: string; style?: string; unicodeRange?: string; - variant?: string; weight?: string; } @@ -1001,27 +1001,16 @@ interface NavigationPreloadState { headerValue?: string; } -interface NotificationAction { - action: string; - icon?: string; - title: string; -} - interface NotificationOptions { - actions?: NotificationAction[]; badge?: string; body?: string; data?: any; dir?: NotificationDirection; icon?: string; - image?: string; lang?: string; - renotify?: boolean; requireInteraction?: boolean; silent?: boolean | null; tag?: string; - timestamp?: EpochTimeStamp; - vibrate?: VibratePattern; } interface OfflineAudioCompletionEventInit extends EventInit { @@ -1335,16 +1324,21 @@ interface RTCDtlsFingerprint { interface RTCEncodedAudioFrameMetadata { contributingSources?: number[]; + payloadType?: number; + sequenceNumber?: number; synchronizationSource?: number; } interface RTCEncodedVideoFrameMetadata { + contributingSources?: number[]; dependencies?: number[]; frameId?: number; height?: number; + payloadType?: number; spatialIndex?: number; synchronizationSource?: number; temporalIndex?: number; + timestamp?: number; width?: number; } @@ -1420,7 +1414,6 @@ interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats { jitterBufferDelay?: number; jitterBufferEmittedCount?: number; keyFramesDecoded?: number; - kind: string; lastPacketReceivedTimestamp?: DOMHighResTimeStamp; mid?: string; nackCount?: number; @@ -1472,6 +1465,7 @@ interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats { retransmittedBytesSent?: number; retransmittedPacketsSent?: number; rid?: string; + rtxSsrc?: number; targetBitrate?: number; totalEncodeTime?: number; totalEncodedBytesTarget?: number; @@ -1589,6 +1583,8 @@ interface RTCSessionDescriptionInit { type: RTCSdpType; } +interface RTCSetParameterOptions {} + interface RTCStats { id: string; timestamp: DOMHighResTimeStamp; @@ -1671,6 +1667,7 @@ interface RequestInit { method?: string; /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */ mode?: RequestMode; + priority?: RequestPriority; /** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */ redirect?: RequestRedirect; /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */ @@ -1989,7 +1986,7 @@ interface VideoDecoderConfig { codedHeight?: number; codedWidth?: number; colorSpace?: VideoColorSpaceInit; - description?: BufferSource; + description?: AllowSharedBufferSource; displayAspectHeight?: number; displayAspectWidth?: number; hardwareAcceleration?: HardwareAcceleration; @@ -2120,7 +2117,7 @@ interface WebTransportOptions { } interface WebTransportSendStreamOptions { - sendOrder?: number | null; + sendOrder?: number; } interface WheelEventInit extends MouseEventInit { @@ -2219,6 +2216,8 @@ interface ARIAMixin { ariaColSpan: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaCurrent) */ ariaCurrent: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDescription) */ + ariaDescription: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDisabled) */ ariaDisabled: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaExpanded) */ @@ -2586,7 +2585,9 @@ declare var AnimationEvent: { }; interface AnimationFrameProvider { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */ cancelAnimationFrame(handle: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */ requestAnimationFrame(callback: FrameRequestCallback): number; } @@ -3129,8 +3130,11 @@ declare var AuthenticatorAssertionResponse: { interface AuthenticatorAttestationResponse extends AuthenticatorResponse { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/attestationObject) */ readonly attestationObject: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getAuthenticatorData) */ getAuthenticatorData(): ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKey) */ getPublicKey(): ArrayBuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKeyAlgorithm) */ getPublicKeyAlgorithm(): COSEAlgorithmIdentifier; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getTransports) */ getTransports(): string[]; @@ -3282,6 +3286,7 @@ declare var BaseAudioContext: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent) */ interface BeforeUnloadEvent extends Event { + /** @deprecated */ returnValue: any; } @@ -3630,6 +3635,8 @@ interface CSSImportRule extends CSSRule { readonly media: MediaList; /** [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) */ + readonly supportsText: string | null; } declare var CSSImportRule: { @@ -3997,6 +4004,8 @@ interface CSSRule { readonly KEYFRAMES_RULE: 7; readonly KEYFRAME_RULE: 8; readonly SUPPORTS_RULE: 12; + readonly COUNTER_STYLE_RULE: 11; + readonly FONT_FEATURE_VALUES_RULE: 14; } declare var CSSRule: { @@ -4012,6 +4021,8 @@ declare var CSSRule: { readonly KEYFRAMES_RULE: 7; readonly KEYFRAME_RULE: 8; readonly SUPPORTS_RULE: 12; + readonly COUNTER_STYLE_RULE: 11; + readonly FONT_FEATURE_VALUES_RULE: 14; }; /** @@ -4152,6 +4163,8 @@ interface CSSStyleDeclaration { /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) */ backgroundSize: string; baselineShift: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/baseline-source) */ + baselineSource: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/block-size) */ blockSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border) */ @@ -4361,6 +4374,9 @@ interface CSSStyleDeclaration { cssText: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */ cursor: string; + cx: string; + cy: string; + d: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/direction) */ direction: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/display) */ @@ -4580,6 +4596,8 @@ interface CSSStyleDeclaration { maskSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-type) */ maskType: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-depth) */ + mathDepth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-style) */ mathStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-block-size) */ @@ -4606,10 +4624,14 @@ interface CSSStyleDeclaration { objectPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset) */ offset: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-anchor) */ + offsetAnchor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-distance) */ offsetDistance: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-path) */ offsetPath: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-position) */ + offsetPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-rotate) */ offsetRotate: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/opacity) */ @@ -4702,6 +4724,7 @@ interface CSSStyleDeclaration { printColorAdjust: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/quotes) */ quotes: string; + r: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/resize) */ resize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/right) */ @@ -4712,6 +4735,8 @@ interface CSSStyleDeclaration { rowGap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ruby-position) */ rubyPosition: string; + rx: string; + ry: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scale) */ scale: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-behavior) */ @@ -4766,8 +4791,12 @@ interface CSSStyleDeclaration { scrollSnapStop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type) */ scrollSnapType: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-color) */ + scrollbarColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-gutter) */ scrollbarGutter: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-width) */ + scrollbarWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold) */ shapeImageThreshold: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-margin) */ @@ -4832,6 +4861,8 @@ interface CSSStyleDeclaration { textUnderlineOffset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-position) */ textUnderlinePosition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */ + textWrap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */ top: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/touch-action) */ @@ -4860,6 +4891,7 @@ interface CSSStyleDeclaration { unicodeBidi: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) */ userSelect: string; + vectorEffect: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */ verticalAlign: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */ @@ -5142,7 +5174,11 @@ interface CSSStyleDeclaration { * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip) */ webkitMaskClip: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-composite) */ + /** + * @deprecated This is a legacy alias of `maskComposite`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite) + */ webkitMaskComposite: string; /** * @deprecated This is a legacy alias of `maskImage`. @@ -5272,14 +5308,12 @@ interface CSSStyleDeclaration { wordBreak: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-spacing) */ wordSpacing: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-wrap) - */ + /** @deprecated */ wordWrap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/writing-mode) */ writingMode: string; + x: string; + y: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */ zIndex: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority) */ @@ -5305,16 +5339,13 @@ declare var CSSStyleDeclaration: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule) */ -interface CSSStyleRule extends CSSRule { - readonly cssRules: CSSRuleList; +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; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/styleMap) */ readonly styleMap: StylePropertyMap; - deleteRule(index: number): void; - insertRule(rule: string, index?: number): number; } declare var CSSStyleRule: { @@ -5947,10 +5978,20 @@ interface CanvasTextDrawingStyles { font: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */ fontKerning: CanvasFontKerning; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */ + fontStretch: CanvasFontStretch; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */ + fontVariantCaps: CanvasFontVariantCaps; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */ + letterSpacing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */ textAlign: CanvasTextAlign; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) */ textBaseline: CanvasTextBaseline; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textRendering) */ + textRendering: CanvasTextRendering; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/wordSpacing) */ + wordSpacing: string; } interface CanvasTransform { @@ -6323,7 +6364,7 @@ interface CredentialsContainer { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/preventSilentAccess) */ preventSilentAccess(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/store) */ - store(credential: Credential): Promise; + store(credential: Credential): Promise; } declare var CredentialsContainer: { @@ -6390,6 +6431,8 @@ interface CustomElementRegistry { ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/get) */ get(name: string): CustomElementConstructor | undefined; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName) */ + getName(constructor: CustomElementConstructor): string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/upgrade) */ upgrade(root: Node): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/whenDefined) */ @@ -8353,6 +8396,7 @@ interface Element * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attachShadow) */ attachShadow(init: ShadowRootInit): ShadowRoot; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility) */ checkVisibility(options?: CheckVisibilityOptions): boolean; /** * Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. @@ -8676,7 +8720,7 @@ interface EncodedVideoChunk { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type) */ readonly type: EncodedVideoChunkType; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo) */ - copyTo(destination: BufferSource): void; + copyTo(destination: AllowSharedBufferSource): void; } declare var EncodedVideoChunk: { @@ -9095,7 +9139,11 @@ interface FileReader extends EventTarget { abort(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) */ readAsArrayBuffer(blob: Blob): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString) */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString) + */ readAsBinaryString(blob: Blob): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) */ readAsDataURL(blob: Blob): void; @@ -9346,8 +9394,6 @@ interface FontFace { style: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */ unicodeRange: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/variant) */ - variant: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */ weight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */ @@ -9521,8 +9567,6 @@ interface Gamepad { readonly buttons: ReadonlyArray; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/connected) */ readonly connected: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/hapticActuators) */ - readonly hapticActuators: ReadonlyArray; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/id) */ readonly id: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/index) */ @@ -9700,6 +9744,7 @@ interface GlobalEventHandlersEventMap { animationstart: AnimationEvent; auxclick: MouseEvent; beforeinput: InputEvent; + beforetoggle: Event; blur: FocusEvent; cancel: Event; canplay: Event; @@ -9821,8 +9866,10 @@ interface GlobalEventHandlers { | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */ onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforeinput_event) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */ onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */ + onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the object loses the input focus. * @param ev The focus event. @@ -9962,7 +10009,7 @@ interface GlobalEventHandlers { ongotpointercapture: | ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/input_event) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */ oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */ oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null; @@ -10016,7 +10063,7 @@ interface GlobalEventHandlers { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event) */ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lostpointercapture_event) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lostpointercapture_event) */ onlostpointercapture: | ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; @@ -11048,6 +11095,7 @@ declare var HTMLDataListElement: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement) */ interface HTMLDetailsElement extends HTMLElement { + name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/open) */ open: boolean; addEventListener( @@ -11278,6 +11326,7 @@ interface HTMLElement spellcheck: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) */ 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/attachInternals) */ attachInternals(): ElementInternals; @@ -11288,7 +11337,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): void; + togglePopover(force?: boolean): boolean; addEventListener( type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, @@ -12222,6 +12271,8 @@ interface HTMLImageElement extends HTMLElement { readonly currentSrc: string; /** [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; /** * Sets or retrieves the height of the object. * @@ -12372,6 +12423,7 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement { /** Sets or retrieves the initial contents of the object. */ defaultValue: string; dirName: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/disabled) */ disabled: boolean; /** * Returns a FileList object on a file type input object. @@ -12417,11 +12469,7 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/height) */ height: number; - /** - * When set, overrides the rendering of checkbox controls so that the current value is not visible. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/indeterminate) - */ + /** When set, overrides the rendering of checkbox controls so that the current value is not visible. */ indeterminate: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/labels) */ readonly labels: NodeListOf | null; @@ -12743,9 +12791,19 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/crossOrigin) */ crossOrigin: string | null; disabled: boolean; - /** Sets or retrieves a destination URL or an anchor point. */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/fetchPriority) */ + fetchPriority: string; + /** + * Sets or retrieves a destination URL or an anchor point. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/href) + */ href: string; - /** Sets or retrieves the language code of the object. */ + /** + * Sets or retrieves the language code of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/hreflang) + */ hreflang: string; imageSizes: string; imageSrcset: string; @@ -13038,6 +13096,7 @@ interface HTMLMediaElement extends HTMLElement { preservesPitch: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/readyState) */ readonly readyState: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/remote) */ readonly remote: RemotePlayback; /** * Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. @@ -13051,6 +13110,12 @@ interface HTMLMediaElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking) */ readonly seeking: boolean; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/sinkId) + */ + readonly sinkId: string; /** * The address or URL of the a media resource that is to be considered. * @@ -13088,7 +13153,7 @@ interface HTMLMediaElement extends HTMLElement { */ load(): void; /** - * Pauses the current playback and sets paused to TRUE. This can be used to test whether the media is playing or paused. You can also use the pause or play events to tell whether the media is playing or not. + * Pauses the current playback and sets paused to TRUE. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause) */ @@ -13105,6 +13170,12 @@ interface HTMLMediaElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/setMediaKeys) */ setMediaKeys(mediaKeys: MediaKeys | null): Promise; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/setSinkId) + */ + setSinkId(sinkId: string): Promise; readonly NETWORK_EMPTY: 0; readonly NETWORK_IDLE: 1; readonly NETWORK_LOADING: 2; @@ -13725,6 +13796,7 @@ declare var HTMLOptionsCollection: { }; interface HTMLOrSVGElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autofocus) */ autofocus: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dataset) */ readonly dataset: DOMStringMap; @@ -14087,6 +14159,7 @@ interface HTMLScriptElement extends HTMLElement { * @deprecated */ charset: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/crossOrigin) */ crossOrigin: string | null; /** Sets or retrieves the status of the script. */ defer: boolean; @@ -14095,6 +14168,7 @@ interface HTMLScriptElement extends HTMLElement { * @deprecated */ event: string; + fetchPriority: string; /** * Sets or retrieves the object that is bound to the event script. * @deprecated @@ -14280,6 +14354,8 @@ interface HTMLSelectElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/setCustomValidity) */ setCustomValidity(error: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/showPicker) */ + showPicker(): void; addEventListener( type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, @@ -15165,6 +15241,7 @@ interface HTMLTemplateElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/content) */ readonly content: DocumentFragment; + shadowRootMode: string; addEventListener( type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, @@ -15645,6 +15722,44 @@ declare var Headers: { new (init?: HeadersInit): Headers; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight) */ +interface Highlight { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/priority) */ + priority: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/type) */ + type: HighlightType; + forEach( + callbackfn: ( + value: AbstractRange, + key: AbstractRange, + parent: Highlight, + ) => void, + thisArg?: any, + ): void; +} + +declare var Highlight: { + prototype: Highlight; + new (...initialRanges: AbstractRange[]): Highlight; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry) */ +interface HighlightRegistry { + forEach( + callbackfn: ( + value: Highlight, + key: string, + parent: HighlightRegistry, + ) => void, + thisArg?: any, + ): void; +} + +declare var HighlightRegistry: { + prototype: HighlightRegistry; + new (): HighlightRegistry; +}; + /** * Allows manipulation of the browser session history, that is the pages visited in the tab or frame that the current page is loaded in. * @@ -16723,7 +16838,11 @@ interface KeyboardEvent extends UIEvent { readonly shiftKey: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/getModifierState) */ getModifierState(keyArg: string): boolean; - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/initKeyboardEvent) + */ initKeyboardEvent( typeArg: string, bubblesArg?: boolean, @@ -16981,7 +17100,7 @@ declare var MIDIAccess: { */ interface MIDIConnectionEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIConnectionEvent/port) */ - readonly port: MIDIPort; + readonly port: MIDIPort | null; } declare var MIDIConnectionEvent: { @@ -16993,7 +17112,7 @@ declare var MIDIConnectionEvent: { }; interface MIDIInputEventMap extends MIDIPortEventMap { - midimessage: Event; + midimessage: MIDIMessageEvent; } /** @@ -17003,7 +17122,7 @@ interface MIDIInputEventMap extends MIDIPortEventMap { */ interface MIDIInput extends MIDIPort { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInput/midimessage_event) */ - onmidimessage: ((this: MIDIInput, ev: Event) => any) | null; + onmidimessage: ((this: MIDIInput, ev: MIDIMessageEvent) => any) | null; addEventListener( type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, @@ -17061,7 +17180,7 @@ declare var MIDIInputMap: { */ interface MIDIMessageEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIMessageEvent/data) */ - readonly data: Uint8Array; + readonly data: Uint8Array | null; } declare var MIDIMessageEvent: { @@ -17128,7 +17247,7 @@ declare var MIDIOutputMap: { }; interface MIDIPortEventMap { - statechange: Event; + statechange: MIDIConnectionEvent; } /** @@ -17146,7 +17265,7 @@ interface MIDIPort extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/name) */ readonly name: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/statechange_event) */ - onstatechange: ((this: MIDIPort, ev: Event) => any) | null; + onstatechange: ((this: MIDIPort, ev: MIDIConnectionEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/state) */ readonly state: MIDIPortDeviceState; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/type) */ @@ -18211,6 +18330,10 @@ interface MouseEvent extends UIEvent { readonly clientY: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/ctrlKey) */ readonly ctrlKey: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/layerX) */ + readonly layerX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/layerY) */ + readonly layerY: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/metaKey) */ readonly metaKey: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/movementX) */ @@ -19041,6 +19164,8 @@ interface NotificationEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification) */ interface Notification extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge) */ + readonly badge: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/body) */ readonly body: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/data) */ @@ -19059,6 +19184,8 @@ interface Notification extends EventTarget { onerror: ((this: Notification, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */ onshow: ((this: Notification, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction) */ + readonly requireInteraction: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */ readonly silent: boolean | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */ @@ -19455,7 +19582,7 @@ declare var OscillatorNode: { }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError) */ -interface OverconstrainedError extends Error { +interface OverconstrainedError extends DOMException { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError/constraint) */ readonly constraint: string; } @@ -20507,6 +20634,7 @@ interface PointerEvent extends MouseEvent { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/getCoalescedEvents) */ getCoalescedEvents(): PointerEvent[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/getPredictedEvents) */ getPredictedEvents(): PointerEvent[]; } @@ -20611,6 +20739,7 @@ interface PublicKeyCredential extends Credential { declare var PublicKeyCredential: { prototype: PublicKeyCredential; new (): PublicKeyCredential; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isConditionalMediationAvailable) */ isConditionalMediationAvailable(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable_static) */ isUserVerifyingPlatformAuthenticatorAvailable(): Promise; @@ -20893,9 +21022,13 @@ declare var RTCDtlsTransport: { new (): RTCDtlsTransport; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame) */ interface RTCEncodedAudioFrame { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data) */ data: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp) */ readonly timestamp: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/getMetadata) */ getMetadata(): RTCEncodedAudioFrameMetadata; } @@ -20904,10 +21037,15 @@ declare var RTCEncodedAudioFrame: { new (): RTCEncodedAudioFrame; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame) */ interface RTCEncodedVideoFrame { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/data) */ data: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp) */ readonly timestamp: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type) */ readonly type: RTCEncodedVideoFrameType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/getMetadata) */ getMetadata(): RTCEncodedVideoFrameMetadata; } @@ -21046,7 +21184,7 @@ interface RTCPeerConnectionEventMap { connectionstatechange: Event; datachannel: RTCDataChannelEvent; icecandidate: RTCPeerConnectionIceEvent; - icecandidateerror: Event; + icecandidateerror: RTCPeerConnectionIceErrorEvent; iceconnectionstatechange: Event; icegatheringstatechange: Event; negotiationneeded: Event; @@ -21085,7 +21223,9 @@ interface RTCPeerConnection extends EventTarget { | ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icecandidateerror_event) */ - onicecandidateerror: ((this: RTCPeerConnection, ev: Event) => any) | null; + onicecandidateerror: + | ((this: RTCPeerConnection, ev: RTCPeerConnectionIceErrorEvent) => any) + | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceconnectionstatechange_event) */ oniceconnectionstatechange: | ((this: RTCPeerConnection, ev: Event) => any) @@ -21265,6 +21405,8 @@ declare var RTCPeerConnectionIceEvent: { interface RTCRtpReceiver { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/track) */ readonly track: MediaStreamTrack; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transform) */ + transform: RTCRtpTransform | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transport) */ readonly transport: RTCDtlsTransport | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getContributingSources) */ @@ -21284,6 +21426,14 @@ declare var RTCRtpReceiver: { getCapabilities(kind: string): RTCRtpCapabilities | null; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransform) */ +interface RTCRtpScriptTransform {} + +declare var RTCRtpScriptTransform: { + prototype: RTCRtpScriptTransform; + new (worker: Worker, options?: any, transfer?: any[]): RTCRtpScriptTransform; +}; + /** * Provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer. * @@ -21294,6 +21444,8 @@ interface RTCRtpSender { readonly dtmf: RTCDTMFSender | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/track) */ readonly track: MediaStreamTrack | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/transform) */ + transform: RTCRtpTransform | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/transport) */ readonly transport: RTCDtlsTransport | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getParameters) */ @@ -21303,7 +21455,10 @@ interface RTCRtpSender { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/replaceTrack) */ replaceTrack(withTrack: MediaStreamTrack | null): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/setParameters) */ - setParameters(parameters: RTCRtpSendParameters): Promise; + setParameters( + parameters: RTCRtpSendParameters, + setParameterOptions?: RTCSetParameterOptions, + ): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/setStreams) */ setStreams(...streams: MediaStream[]): void; } @@ -23916,6 +24071,8 @@ declare var SVGGraphicsElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement) */ interface SVGImageElement extends SVGGraphicsElement, SVGURIReference { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/crossorigin) */ + crossOrigin: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/height) */ readonly height: SVGAnimatedLength; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/preserveAspectRatio) */ @@ -25630,6 +25787,7 @@ interface ServiceWorkerContainer extends EventTarget { oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */ onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */ onmessageerror: | ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null; @@ -26802,6 +26960,24 @@ interface TextMetrics { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxRight) */ readonly actualBoundingBoxRight: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/alphabeticBaseline) + */ + readonly alphabeticBaseline: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightAscent) + */ + readonly emHeightAscent: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightDescent) + */ + readonly emHeightDescent: number; /** * Returns the measurement described below. * @@ -26814,6 +26990,18 @@ interface TextMetrics { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxDescent) */ readonly fontBoundingBoxDescent: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/hangingBaseline) + */ + readonly hangingBaseline: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/ideographicBaseline) + */ + readonly ideographicBaseline: number; /** * Returns the measurement described below. * @@ -27740,7 +27928,7 @@ interface VideoFrame { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close) */ close(): void; copyTo( - destination: BufferSource, + destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions, ): Promise; } @@ -27748,7 +27936,7 @@ interface VideoFrame { declare var VideoFrame: { prototype: VideoFrame; new (image: CanvasImageSource, init?: VideoFrameInit): VideoFrame; - new (data: BufferSource, init: VideoFrameBufferInit): VideoFrame; + new (data: AllowSharedBufferSource, init: VideoFrameBufferInit): VideoFrame; }; /** @@ -27995,42 +28183,42 @@ interface WEBGL_multi_draw { multiDrawArraysInstancedWEBGL( mode: GLenum, firstsList: Int32Array | GLint[], - firstsOffset: GLuint, + firstsOffset: number, countsList: Int32Array | GLsizei[], - countsOffset: GLuint, + countsOffset: number, instanceCountsList: Int32Array | GLsizei[], - instanceCountsOffset: GLuint, + instanceCountsOffset: number, drawcount: GLsizei, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */ multiDrawArraysWEBGL( mode: GLenum, firstsList: Int32Array | GLint[], - firstsOffset: GLuint, + firstsOffset: number, countsList: Int32Array | GLsizei[], - countsOffset: GLuint, + countsOffset: number, drawcount: GLsizei, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */ multiDrawElementsInstancedWEBGL( mode: GLenum, countsList: Int32Array | GLsizei[], - countsOffset: GLuint, + countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], - offsetsOffset: GLuint, + offsetsOffset: number, instanceCountsList: Int32Array | GLsizei[], - instanceCountsOffset: GLuint, + instanceCountsOffset: number, drawcount: GLsizei, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */ multiDrawElementsWEBGL( mode: GLenum, countsList: Int32Array | GLsizei[], - countsOffset: GLuint, + countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], - offsetsOffset: GLuint, + offsetsOffset: number, drawcount: GLsizei, ): void; } @@ -28133,7 +28321,6 @@ declare var WebGL2RenderingContext: { readonly STENCIL: 0x1802; readonly RED: 0x1903; readonly RGB8: 0x8051; - readonly RGBA8: 0x8058; readonly RGB10_A2: 0x8059; readonly TEXTURE_BINDING_3D: 0x806a; readonly UNPACK_SKIP_IMAGES: 0x806d; @@ -28644,6 +28831,7 @@ declare var WebGL2RenderingContext: { readonly RENDERBUFFER: 0x8d41; readonly RGBA4: 0x8056; readonly RGB5_A1: 0x8057; + readonly RGBA8: 0x8058; readonly RGB565: 0x8d62; readonly DEPTH_COMPONENT16: 0x81a5; readonly STENCIL_INDEX8: 0x8d48; @@ -28735,21 +28923,21 @@ interface WebGL2RenderingContextBase { buffer: GLenum, drawbuffer: GLint, values: Float32List, - srcOffset?: GLuint, + srcOffset?: number, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ clearBufferiv( buffer: GLenum, drawbuffer: GLint, values: Int32List, - srcOffset?: GLuint, + srcOffset?: number, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ clearBufferuiv( buffer: GLenum, drawbuffer: GLint, values: Uint32List, - srcOffset?: GLuint, + srcOffset?: number, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) */ clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum; @@ -28774,7 +28962,7 @@ interface WebGL2RenderingContextBase { depth: GLsizei, border: GLint, srcData: ArrayBufferView, - srcOffset?: GLuint, + srcOffset?: number, srcLengthOverride?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D) */ @@ -28802,7 +28990,7 @@ interface WebGL2RenderingContextBase { depth: GLsizei, format: GLenum, srcData: ArrayBufferView, - srcOffset?: GLuint, + srcOffset?: number, srcLengthOverride?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyBufferSubData) */ @@ -28905,7 +29093,7 @@ interface WebGL2RenderingContextBase { target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, - dstOffset?: GLuint, + dstOffset?: number, length?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getFragDataLocation) */ @@ -29025,7 +29213,7 @@ interface WebGL2RenderingContextBase { format: GLenum, type: GLenum, srcData: ArrayBufferView, - srcOffset: GLuint, + srcOffset: number, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage2D) */ texStorage2D( @@ -29083,7 +29271,7 @@ interface WebGL2RenderingContextBase { format: GLenum, type: GLenum, srcData: ArrayBufferView | null, - srcOffset?: GLuint, + srcOffset?: number, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */ transformFeedbackVaryings( @@ -29097,7 +29285,7 @@ interface WebGL2RenderingContextBase { uniform1uiv( location: WebGLUniformLocation | null, data: Uint32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ @@ -29110,7 +29298,7 @@ interface WebGL2RenderingContextBase { uniform2uiv( location: WebGLUniformLocation | null, data: Uint32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ @@ -29124,7 +29312,7 @@ interface WebGL2RenderingContextBase { uniform3uiv( location: WebGLUniformLocation | null, data: Uint32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ @@ -29139,7 +29327,7 @@ interface WebGL2RenderingContextBase { uniform4uiv( location: WebGLUniformLocation | null, data: Uint32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformBlockBinding) */ @@ -29153,7 +29341,7 @@ interface WebGL2RenderingContextBase { location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ @@ -29161,7 +29349,7 @@ interface WebGL2RenderingContextBase { location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ @@ -29169,7 +29357,7 @@ interface WebGL2RenderingContextBase { location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ @@ -29177,7 +29365,7 @@ interface WebGL2RenderingContextBase { location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ @@ -29185,7 +29373,7 @@ interface WebGL2RenderingContextBase { location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ @@ -29193,7 +29381,7 @@ interface WebGL2RenderingContextBase { location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribDivisor) */ @@ -29234,7 +29422,6 @@ interface WebGL2RenderingContextBase { readonly STENCIL: 0x1802; readonly RED: 0x1903; readonly RGB8: 0x8051; - readonly RGBA8: 0x8058; readonly RGB10_A2: 0x8059; readonly TEXTURE_BINDING_3D: 0x806a; readonly UNPACK_SKIP_IMAGES: 0x806d; @@ -29490,25 +29677,29 @@ interface WebGL2RenderingContextBase { interface WebGL2RenderingContextOverloads { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */ bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void; - bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void; + bufferData( + target: GLenum, + srcData: AllowSharedBufferSource | null, + usage: GLenum, + ): void; bufferData( target: GLenum, srcData: ArrayBufferView, usage: GLenum, - srcOffset: GLuint, + srcOffset: number, length?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */ bufferSubData( target: GLenum, dstByteOffset: GLintptr, - srcData: BufferSource, + srcData: AllowSharedBufferSource, ): void; bufferSubData( target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, - srcOffset: GLuint, + srcOffset: number, length?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */ @@ -29530,7 +29721,7 @@ interface WebGL2RenderingContextOverloads { height: GLsizei, border: GLint, srcData: ArrayBufferView, - srcOffset?: GLuint, + srcOffset?: number, srcLengthOverride?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */ @@ -29554,7 +29745,7 @@ interface WebGL2RenderingContextOverloads { height: GLsizei, format: GLenum, srcData: ArrayBufferView, - srcOffset?: GLuint, + srcOffset?: number, srcLengthOverride?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */ @@ -29584,7 +29775,7 @@ interface WebGL2RenderingContextOverloads { format: GLenum, type: GLenum, dstData: ArrayBufferView, - dstOffset: GLuint, + dstOffset: number, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */ texImage2D( @@ -29638,7 +29829,7 @@ interface WebGL2RenderingContextOverloads { format: GLenum, type: GLenum, srcData: ArrayBufferView, - srcOffset: GLuint, + srcOffset: number, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */ texSubImage2D( @@ -29693,62 +29884,62 @@ interface WebGL2RenderingContextOverloads { format: GLenum, type: GLenum, srcData: ArrayBufferView, - srcOffset: GLuint, + srcOffset: number, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform1fv( location: WebGLUniformLocation | null, data: Float32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform1iv( location: WebGLUniformLocation | null, data: Int32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform2fv( location: WebGLUniformLocation | null, data: Float32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform2iv( location: WebGLUniformLocation | null, data: Int32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform3fv( location: WebGLUniformLocation | null, data: Float32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform3iv( location: WebGLUniformLocation | null, data: Int32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform4fv( location: WebGLUniformLocation | null, data: Float32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform4iv( location: WebGLUniformLocation | null, data: Int32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ @@ -29756,7 +29947,7 @@ interface WebGL2RenderingContextOverloads { location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ @@ -29764,7 +29955,7 @@ interface WebGL2RenderingContextOverloads { location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ @@ -29772,7 +29963,7 @@ interface WebGL2RenderingContextOverloads { location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; } @@ -30139,6 +30330,7 @@ declare var WebGLRenderingContext: { readonly RENDERBUFFER: 0x8d41; readonly RGBA4: 0x8056; readonly RGB5_A1: 0x8057; + readonly RGBA8: 0x8058; readonly RGB565: 0x8d62; readonly DEPTH_COMPONENT16: 0x81a5; readonly STENCIL_INDEX8: 0x8d48; @@ -30888,6 +31080,7 @@ interface WebGLRenderingContextBase { readonly RENDERBUFFER: 0x8d41; readonly RGBA4: 0x8056; readonly RGB5_A1: 0x8057; + readonly RGBA8: 0x8058; readonly RGB565: 0x8d62; readonly DEPTH_COMPONENT16: 0x81a5; readonly STENCIL_INDEX8: 0x8d48; @@ -30929,9 +31122,17 @@ interface WebGLRenderingContextBase { interface WebGLRenderingContextOverloads { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */ bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void; - bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void; + bufferData( + target: GLenum, + data: AllowSharedBufferSource | null, + usage: GLenum, + ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */ - bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void; + bufferSubData( + target: GLenum, + offset: GLintptr, + data: AllowSharedBufferSource, + ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */ compressedTexImage2D( target: GLenum, @@ -31297,13 +31498,13 @@ interface WebTransportDatagramDuplexStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark) */ incomingHighWaterMark: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */ - incomingMaxAge: number; + incomingMaxAge: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize) */ readonly maxDatagramSize: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark) */ outgoingHighWaterMark: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */ - outgoingMaxAge: number; + outgoingMaxAge: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable) */ readonly readable: ReadableStream; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ @@ -31365,6 +31566,7 @@ interface WindowEventMap DOMContentLoaded: Event; devicemotion: DeviceMotionEvent; deviceorientation: DeviceOrientationEvent; + deviceorientationabsolute: DeviceOrientationEvent; gamepadconnected: GamepadEvent; gamepaddisconnected: GamepadEvent; orientationchange: Event; @@ -31462,6 +31664,14 @@ interface Window ondeviceorientation: | ((this: Window, ev: DeviceOrientationEvent) => any) | null; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientationabsolute_event) + */ + ondeviceorientationabsolute: + | ((this: Window, ev: DeviceOrientationEvent) => any) + | null; /** * @deprecated * @@ -31752,7 +31962,11 @@ interface WindowEventHandlers { onunhandledrejection: | ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event) */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event) + */ onunload: ((this: WindowEventHandlers, ev: Event) => any) | null; addEventListener( type: K, @@ -32444,44 +32658,44 @@ declare var XSLTProcessor: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console) */ interface Console { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static) */ assert(condition?: boolean, ...data: any[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static) */ clear(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) */ count(label?: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) */ countReset(label?: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) */ debug(...data: any[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */ dir(item?: any, options?: any): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static) */ dirxml(...data: any[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static) */ error(...data: any[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) */ group(...data: any[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) */ groupCollapsed(...data: any[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) */ groupEnd(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) */ info(...data: any[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static) */ log(...data: any[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static) */ table(tabularData?: any, properties?: string[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) */ time(label?: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) */ timeEnd(label?: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) */ timeLog(label?: string, ...data: any[]): void; timeStamp(label?: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) */ trace(...data: any[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static) */ warn(...data: any[]): void; } @@ -32489,10 +32703,13 @@ declare var console: Console; /** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */ declare namespace CSS { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/highlights_static) */ + var highlights: HighlightRegistry; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function Hz(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function Q(value: number): CSSUnitValue; + function cap(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function ch(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ @@ -32539,8 +32756,10 @@ declare namespace CSS { function fr(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function grad(value: number): CSSUnitValue; + function ic(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function kHz(value: number): CSSUnitValue; + function lh(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function lvb(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ @@ -32569,10 +32788,15 @@ declare namespace CSS { function px(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rad(value: number): CSSUnitValue; + function rcap(value: number): CSSUnitValue; + function rch(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/registerProperty_static) */ function registerProperty(definition: PropertyDefinition): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rem(value: number): CSSUnitValue; + function rex(value: number): CSSUnitValue; + function ric(value: number): CSSUnitValue; + function rlh(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function s(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/supports_static) */ @@ -32615,11 +32839,11 @@ declare namespace WebAssembly { (message?: string): CompileError; }; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global) */ interface Global { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/value) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/value) */ value: ValueTypeMap[T]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/valueOf) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/valueOf) */ valueOf(): ValueTypeMap[T]; } @@ -32631,9 +32855,9 @@ declare namespace WebAssembly { ): Global; }; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance) */ interface Instance { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance/exports) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance/exports) */ readonly exports: Exports; } @@ -32650,11 +32874,11 @@ declare namespace WebAssembly { (message?: string): LinkError; }; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory) */ interface Memory { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory/buffer) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/buffer) */ readonly buffer: ArrayBuffer; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory/grow) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/grow) */ grow(delta: number): number; } @@ -32663,17 +32887,17 @@ declare namespace WebAssembly { new (descriptor: MemoryDescriptor): Memory; }; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module) */ interface Module {} var Module: { prototype: Module; new (bytes: BufferSource): Module; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module/customSections) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/customSections_static) */ customSections(moduleObject: Module, sectionName: string): ArrayBuffer[]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module/exports) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/exports_static) */ exports(moduleObject: Module): ModuleExportDescriptor[]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module/imports) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/imports_static) */ imports(moduleObject: Module): ModuleImportDescriptor[]; }; @@ -32685,15 +32909,15 @@ declare namespace WebAssembly { (message?: string): RuntimeError; }; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table) */ interface Table { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/length) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/length) */ readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/get) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/get) */ get(index: number): any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/grow) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/grow) */ grow(delta: number, value?: any): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/set) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/set) */ set(index: number, value?: any): void; } @@ -32753,13 +32977,13 @@ declare namespace WebAssembly { type Imports = Record; type ModuleImports = Record; type ValueType = keyof ValueTypeMap; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compile) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compileStreaming) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compileStreaming_static) */ function compileStreaming( source: Response | PromiseLike, ): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiate) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiate_static) */ function instantiate( bytes: BufferSource, importObject?: Imports, @@ -32768,12 +32992,12 @@ declare namespace WebAssembly { moduleObject: Module, importObject?: Imports, ): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiateStreaming) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiateStreaming_static) */ function instantiateStreaming( source: Response | PromiseLike, importObject?: Imports, ): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/validate) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/validate_static) */ function validate(bytes: BufferSource): boolean; } @@ -33305,6 +33529,14 @@ declare var ondevicemotion: declare var ondeviceorientation: | ((this: Window, ev: DeviceOrientationEvent) => any) | null; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientationabsolute_event) + */ +declare var ondeviceorientationabsolute: + | ((this: Window, ev: DeviceOrientationEvent) => any) + | null; /** * @deprecated * @@ -33505,7 +33737,9 @@ declare function toString(): string; * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) */ declare function dispatchEvent(event: Event): boolean; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */ declare function cancelAnimationFrame(handle: number): void; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */ declare function requestAnimationFrame(callback: FrameRequestCallback): number; /** * Fires when the user aborts the download. @@ -33530,8 +33764,10 @@ declare var onanimationstart: | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */ declare var onauxclick: ((this: Window, ev: MouseEvent) => any) | null; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforeinput_event) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */ declare var onbeforeinput: ((this: Window, ev: InputEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */ +declare var onbeforetoggle: ((this: Window, ev: Event) => any) | null; /** * Fires when the object loses the input focus. * @param ev The focus event. @@ -33671,7 +33907,7 @@ declare var onformdata: ((this: Window, ev: FormDataEvent) => any) | null; declare var ongotpointercapture: | ((this: Window, ev: PointerEvent) => any) | null; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/input_event) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */ declare var oninput: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */ declare var oninvalid: ((this: Window, ev: Event) => any) | null; @@ -33725,7 +33961,7 @@ declare var onloadedmetadata: ((this: Window, ev: Event) => any) | null; * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event) */ declare var onloadstart: ((this: Window, ev: Event) => any) | null; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lostpointercapture_event) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lostpointercapture_event) */ declare var onlostpointercapture: | ((this: Window, ev: PointerEvent) => any) | null; @@ -34017,7 +34253,11 @@ declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null; declare var onunhandledrejection: | ((this: Window, ev: PromiseRejectionEvent) => any) | null; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event) */ +/** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event) + */ declare var onunload: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/localStorage) */ declare var localStorage: Storage; @@ -34186,6 +34426,7 @@ type OnErrorEventHandler = OnErrorEventHandlerNonNull | null; type OptionalPostfixToken = ` ${T}` | ""; type OptionalPrefixToken = `${T} ` | ""; type PerformanceEntryList = PerformanceEntry[]; +type RTCRtpTransform = RTCRtpScriptTransform; type ReadableStreamController = | ReadableStreamDefaultController | ReadableByteStreamController; @@ -34430,6 +34671,7 @@ type HardwareAcceleration = | "prefer-hardware" | "prefer-software"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; +type HighlightType = "grammar-error" | "highlight" | "spelling-error"; type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; type IDBRequestReadyState = "done" | "pending"; type IDBTransactionDurability = "default" | "relaxed" | "strict"; @@ -34615,6 +34857,7 @@ type RTCStatsType = | "data-channel" | "inbound-rtp" | "local-candidate" + | "media-playout" | "media-source" | "outbound-rtp" | "peer-connection" @@ -34667,6 +34910,7 @@ type RequestDestination = | "worker" | "xslt"; type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin"; +type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; type ResidentKeyRequirement = "discouraged" | "preferred" | "required"; type ResizeObserverBoxOptions = diff --git a/generated/lib.dom.iterable.d.ts b/generated/lib.dom.iterable.d.ts index 26e1043..b3540cd 100644 --- a/generated/lib.dom.iterable.d.ts +++ b/generated/lib.dom.iterable.d.ts @@ -149,6 +149,10 @@ interface Headers { values(): IterableIterator; } +interface Highlight extends Set {} + +interface HighlightRegistry extends Map {} + interface IDBDatabase { /** * Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. @@ -334,6 +338,11 @@ interface SubtleCrypto { keyUsages: Iterable, ): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */ + generateKey( + algorithm: "Ed25519", + extractable: boolean, + keyUsages: ReadonlyArray<"sign" | "verify">, + ): Promise; generateKey( algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, @@ -428,42 +437,42 @@ interface WEBGL_multi_draw { multiDrawArraysInstancedWEBGL( mode: GLenum, firstsList: Int32Array | Iterable, - firstsOffset: GLuint, + firstsOffset: number, countsList: Int32Array | Iterable, - countsOffset: GLuint, + countsOffset: number, instanceCountsList: Int32Array | Iterable, - instanceCountsOffset: GLuint, + instanceCountsOffset: number, drawcount: GLsizei, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */ multiDrawArraysWEBGL( mode: GLenum, firstsList: Int32Array | Iterable, - firstsOffset: GLuint, + firstsOffset: number, countsList: Int32Array | Iterable, - countsOffset: GLuint, + countsOffset: number, drawcount: GLsizei, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */ multiDrawElementsInstancedWEBGL( mode: GLenum, countsList: Int32Array | Iterable, - countsOffset: GLuint, + countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable, - offsetsOffset: GLuint, + offsetsOffset: number, instanceCountsList: Int32Array | Iterable, - instanceCountsOffset: GLuint, + instanceCountsOffset: number, drawcount: GLsizei, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */ multiDrawElementsWEBGL( mode: GLenum, countsList: Int32Array | Iterable, - countsOffset: GLuint, + countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable, - offsetsOffset: GLuint, + offsetsOffset: number, drawcount: GLsizei, ): void; } @@ -474,21 +483,21 @@ interface WebGL2RenderingContextBase { buffer: GLenum, drawbuffer: GLint, values: Iterable, - srcOffset?: GLuint, + srcOffset?: number, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ clearBufferiv( buffer: GLenum, drawbuffer: GLint, values: Iterable, - srcOffset?: GLuint, + srcOffset?: number, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ clearBufferuiv( buffer: GLenum, drawbuffer: GLint, values: Iterable, - srcOffset?: GLuint, + srcOffset?: number, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */ drawBuffers(buffers: Iterable): void; @@ -524,28 +533,28 @@ interface WebGL2RenderingContextBase { uniform1uiv( location: WebGLUniformLocation | null, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ uniform2uiv( location: WebGLUniformLocation | null, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ uniform3uiv( location: WebGLUniformLocation | null, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ uniform4uiv( location: WebGLUniformLocation | null, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ @@ -553,7 +562,7 @@ interface WebGL2RenderingContextBase { location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ @@ -561,7 +570,7 @@ interface WebGL2RenderingContextBase { location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ @@ -569,7 +578,7 @@ interface WebGL2RenderingContextBase { location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ @@ -577,7 +586,7 @@ interface WebGL2RenderingContextBase { location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ @@ -585,7 +594,7 @@ interface WebGL2RenderingContextBase { location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ @@ -593,7 +602,7 @@ interface WebGL2RenderingContextBase { location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ @@ -607,56 +616,56 @@ interface WebGL2RenderingContextOverloads { uniform1fv( location: WebGLUniformLocation | null, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform1iv( location: WebGLUniformLocation | null, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform2fv( location: WebGLUniformLocation | null, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform2iv( location: WebGLUniformLocation | null, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform3fv( location: WebGLUniformLocation | null, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform3iv( location: WebGLUniformLocation | null, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform4fv( location: WebGLUniformLocation | null, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform4iv( location: WebGLUniformLocation | null, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ @@ -664,7 +673,7 @@ interface WebGL2RenderingContextOverloads { location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ @@ -672,7 +681,7 @@ interface WebGL2RenderingContextOverloads { location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ @@ -680,7 +689,7 @@ interface WebGL2RenderingContextOverloads { location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; } diff --git a/generated/lib.es2016.d.ts b/generated/lib.es2016.d.ts index 3e93393..989ae59 100644 --- a/generated/lib.es2016.d.ts +++ b/generated/lib.es2016.d.ts @@ -1,3 +1,4 @@ /// /// /// +/// diff --git a/generated/lib.es2016.intl.d.ts b/generated/lib.es2016.intl.d.ts new file mode 100644 index 0000000..c6f4b5e --- /dev/null +++ b/generated/lib.es2016.intl.d.ts @@ -0,0 +1,14 @@ +/// +declare namespace Intl { + /** + * The `Intl.getCanonicalLocales()` method returns an array containing + * the canonical locale names. Duplicates will be omitted and elements + * will be validated as structurally valid language tags. + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales) + * + * @param locale A list of String values for which to get the canonical locale names + * @returns An array containing the canonical and validated locale names. + */ + function getCanonicalLocales(locale?: string | readonly string[]): string[]; +} diff --git a/generated/lib.es2018.full.d.ts b/generated/lib.es2018.full.d.ts index f1f42b6..5648d4b 100644 --- a/generated/lib.es2018.full.d.ts +++ b/generated/lib.es2018.full.d.ts @@ -4,3 +4,4 @@ /// /// /// +/// diff --git a/generated/lib.es2018.intl.d.ts b/generated/lib.es2018.intl.d.ts index d357ab7..2d26386 100644 --- a/generated/lib.es2018.intl.d.ts +++ b/generated/lib.es2018.intl.d.ts @@ -30,18 +30,22 @@ declare namespace Intl { select(n: number): LDMLPluralRule; } - const PluralRules: { + interface PluralRulesConstructor { new ( - locales?: string | string[], + locales?: string | readonly string[], + options?: PluralRulesOptions, + ): PluralRules; + ( + locales?: string | readonly string[], options?: PluralRulesOptions, ): PluralRules; - (locales?: string | string[], options?: PluralRulesOptions): PluralRules; - supportedLocalesOf( - locales: string | string[], + locales: string | readonly string[], options?: { localeMatcher?: "lookup" | "best fit" }, ): string[]; - }; + } + + const PluralRules: PluralRulesConstructor; // We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here: type ES2018NumberFormatPartType = diff --git a/generated/lib.es2019.full.d.ts b/generated/lib.es2019.full.d.ts index 20dfc21..8ed7e64 100644 --- a/generated/lib.es2019.full.d.ts +++ b/generated/lib.es2019.full.d.ts @@ -4,3 +4,4 @@ /// /// /// +/// diff --git a/generated/lib.es2020.full.d.ts b/generated/lib.es2020.full.d.ts index fd27bd6..b91afad 100644 --- a/generated/lib.es2020.full.d.ts +++ b/generated/lib.es2020.full.d.ts @@ -4,3 +4,4 @@ /// /// /// +/// diff --git a/generated/lib.es2020.intl.d.ts b/generated/lib.es2020.intl.d.ts index 002b6c5..58d0f64 100644 --- a/generated/lib.es2020.intl.d.ts +++ b/generated/lib.es2020.intl.d.ts @@ -2,9 +2,11 @@ /// declare namespace Intl { /** - * [Unicode BCP 47 Locale Identifiers](https://unicode.org/reports/tr35/#Unicode_Language_and_Locale_Identifiers) definition. + * A string that is a valid [Unicode BCP 47 Locale Identifier](https://unicode.org/reports/tr35/#Unicode_locale_identifier). * - * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument). + * For example: "fa", "es-MX", "zh-Hant-TW". + * + * See [MDN - Intl - locales argument](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument). */ type UnicodeBCP47LocaleIdentifier = string; @@ -72,16 +74,9 @@ declare namespace Intl { type RelativeTimeFormatStyle = "long" | "short" | "narrow"; /** - * [BCP 47 language tag](http://tools.ietf.org/html/rfc5646) definition. + * The locale or locales to use * - * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument). - */ - type BCP47LanguageTag = string; - - /** - * The locale(s) to use - * - * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument). + * See [MDN - Intl - locales argument](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument). */ type LocalesArgument = | UnicodeBCP47LocaleIdentifier @@ -208,7 +203,7 @@ declare namespace Intl { * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat). */ new ( - locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[], + locales?: LocalesArgument, options?: RelativeTimeFormatOptions, ): RelativeTimeFormat; @@ -231,7 +226,7 @@ declare namespace Intl { * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf). */ supportedLocalesOf( - locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[], + locales?: LocalesArgument, options?: RelativeTimeFormatOptions, ): UnicodeBCP47LocaleIdentifier[]; }; @@ -307,7 +302,7 @@ declare namespace Intl { /** Attempts to remove information about the locale that would be added by calling `Locale.maximize()`. */ minimize(): Locale; /** Returns the locale's full locale identifier string. */ - toString(): BCP47LanguageTag; + toString(): UnicodeBCP47LocaleIdentifier; } /** @@ -325,7 +320,10 @@ declare namespace Intl { * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale). */ const Locale: { - new (tag: BCP47LanguageTag | Locale, options?: LocaleOptions): Locale; + new ( + tag: UnicodeBCP47LocaleIdentifier | Locale, + options?: LocaleOptions, + ): Locale; }; type DisplayNamesFallback = "code" | "none"; @@ -418,6 +416,52 @@ declare namespace Intl { supportedLocalesOf( locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher }, - ): BCP47LanguageTag[]; + ): UnicodeBCP47LocaleIdentifier[]; }; + + interface CollatorConstructor { + new (locales?: LocalesArgument, options?: CollatorOptions): Collator; + (locales?: LocalesArgument, options?: CollatorOptions): Collator; + supportedLocalesOf( + locales: LocalesArgument, + options?: CollatorOptions, + ): string[]; + } + + interface DateTimeFormatConstructor { + new ( + locales?: LocalesArgument, + options?: DateTimeFormatOptions, + ): DateTimeFormat; + ( + locales?: LocalesArgument, + options?: DateTimeFormatOptions, + ): DateTimeFormat; + supportedLocalesOf( + locales: LocalesArgument, + options?: DateTimeFormatOptions, + ): string[]; + } + + interface NumberFormatConstructor { + new ( + locales?: LocalesArgument, + options?: NumberFormatOptions, + ): NumberFormat; + (locales?: LocalesArgument, options?: NumberFormatOptions): NumberFormat; + supportedLocalesOf( + locales: LocalesArgument, + options?: NumberFormatOptions, + ): string[]; + } + + interface PluralRulesConstructor { + new (locales?: LocalesArgument, options?: PluralRulesOptions): PluralRules; + (locales?: LocalesArgument, options?: PluralRulesOptions): PluralRules; + + supportedLocalesOf( + locales: LocalesArgument, + options?: { localeMatcher?: "lookup" | "best fit" }, + ): string[]; + } } diff --git a/generated/lib.es2020.string.d.ts b/generated/lib.es2020.string.d.ts index a4c2ab0..189a093 100644 --- a/generated/lib.es2020.string.d.ts +++ b/generated/lib.es2020.string.d.ts @@ -7,5 +7,23 @@ interface String { * containing the results of that search. * @param regexp A variable name or string literal containing the regular expression pattern and flags. */ - matchAll(regexp: RegExp): IterableIterator; + matchAll(regexp: RegExp): IterableIterator; + + /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */ + toLocaleLowerCase(locales?: Intl.LocalesArgument): string; + + /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */ + toLocaleUpperCase(locales?: Intl.LocalesArgument): string; + + /** + * Determines whether two strings are equivalent in the current or specified locale. + * @param that String to compare to target string + * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details. + * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details. + */ + localeCompare( + that: string, + locales?: Intl.LocalesArgument, + options?: Intl.CollatorOptions, + ): number; } diff --git a/generated/lib.es2021.full.d.ts b/generated/lib.es2021.full.d.ts index c84889f..1fe6b4d 100644 --- a/generated/lib.es2021.full.d.ts +++ b/generated/lib.es2021.full.d.ts @@ -4,3 +4,4 @@ /// /// /// +/// diff --git a/generated/lib.es2021.intl.d.ts b/generated/lib.es2021.intl.d.ts index 11c1600..4a9dc63 100644 --- a/generated/lib.es2021.intl.d.ts +++ b/generated/lib.es2021.intl.d.ts @@ -134,10 +134,7 @@ declare namespace Intl { * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat). */ - new ( - locales?: BCP47LanguageTag | BCP47LanguageTag[], - options?: ListFormatOptions, - ): ListFormat; + new (locales?: LocalesArgument, options?: ListFormatOptions): ListFormat; /** * Returns an array containing those of the provided locales that are @@ -156,8 +153,8 @@ declare namespace Intl { * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf). */ supportedLocalesOf( - locales: BCP47LanguageTag | BCP47LanguageTag[], + locales: LocalesArgument, options?: Pick, - ): BCP47LanguageTag[]; + ): UnicodeBCP47LocaleIdentifier[]; }; } diff --git a/generated/lib.es2022.full.d.ts b/generated/lib.es2022.full.d.ts index 6dffec5..72a04fe 100644 --- a/generated/lib.es2022.full.d.ts +++ b/generated/lib.es2022.full.d.ts @@ -4,3 +4,4 @@ /// /// /// +/// diff --git a/generated/lib.es2022.intl.d.ts b/generated/lib.es2022.intl.d.ts index 65f3c9b..f792d43 100644 --- a/generated/lib.es2022.intl.d.ts +++ b/generated/lib.es2022.intl.d.ts @@ -72,10 +72,7 @@ declare namespace Intl { * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter). */ - new ( - locales?: BCP47LanguageTag | BCP47LanguageTag[], - options?: SegmenterOptions, - ): Segmenter; + new (locales?: LocalesArgument, options?: SegmenterOptions): Segmenter; /** * Returns an array containing those of the provided locales that are supported without having to fall back to the runtime's default locale. @@ -90,9 +87,9 @@ declare namespace Intl { * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf) */ supportedLocalesOf( - locales: BCP47LanguageTag | BCP47LanguageTag[], + locales: LocalesArgument, options?: Pick, - ): BCP47LanguageTag[]; + ): UnicodeBCP47LocaleIdentifier[]; }; /** diff --git a/generated/lib.es2023.full.d.ts b/generated/lib.es2023.full.d.ts index c4ce0b6..f2d0479 100644 --- a/generated/lib.es2023.full.d.ts +++ b/generated/lib.es2023.full.d.ts @@ -4,3 +4,4 @@ /// /// /// +/// diff --git a/generated/lib.es5.d.ts b/generated/lib.es5.d.ts index 886df90..32770be 100644 --- a/generated/lib.es5.d.ts +++ b/generated/lib.es5.d.ts @@ -859,6 +859,7 @@ interface ImportCallOptions { /** * The type for the `assert` property of the optional second argument to `import()`. + * @deprecated */ interface ImportAssertions { [key: string]: string; @@ -2290,6 +2291,11 @@ type Capitalize = intrinsic; */ type Uncapitalize = intrinsic; +/** + * Marker for non-inference type position + */ +type NoInfer = intrinsic; + /** * Marker for contextual 'this' type */ @@ -6685,14 +6691,17 @@ declare namespace Intl { compare(x: string, y: string): number; resolvedOptions(): ResolvedCollatorOptions; } - var Collator: { + + interface CollatorConstructor { new (locales?: string | string[], options?: CollatorOptions): Collator; (locales?: string | string[], options?: CollatorOptions): Collator; supportedLocalesOf( locales: string | string[], options?: CollatorOptions, ): string[]; - }; + } + + var Collator: CollatorConstructor; interface NumberFormatOptions { localeMatcher?: string | undefined; @@ -6724,7 +6733,8 @@ declare namespace Intl { format(value: number): string; resolvedOptions(): ResolvedNumberFormatOptions; } - var NumberFormat: { + + interface NumberFormatConstructor { new ( locales?: string | string[], options?: NumberFormatOptions, @@ -6735,7 +6745,9 @@ declare namespace Intl { options?: NumberFormatOptions, ): string[]; readonly prototype: NumberFormat; - }; + } + + var NumberFormat: NumberFormatConstructor; interface DateTimeFormatOptions { localeMatcher?: "best fit" | "lookup" | undefined; @@ -6781,7 +6793,8 @@ declare namespace Intl { format(date?: Date | number): string; resolvedOptions(): ResolvedDateTimeFormatOptions; } - var DateTimeFormat: { + + interface DateTimeFormatConstructor { new ( locales?: string | string[], options?: DateTimeFormatOptions, @@ -6795,7 +6808,9 @@ declare namespace Intl { options?: DateTimeFormatOptions, ): string[]; readonly prototype: DateTimeFormat; - }; + } + + var DateTimeFormat: DateTimeFormatConstructor; } interface String { diff --git a/generated/lib.esnext.collection.d.ts b/generated/lib.esnext.collection.d.ts new file mode 100644 index 0000000..a3f853e --- /dev/null +++ b/generated/lib.esnext.collection.d.ts @@ -0,0 +1,12 @@ +/// +interface MapConstructor { + /** + * Groups members of an iterable according to the return value of the passed callback. + * @param items An iterable. + * @param keySelector A callback which will be invoked for each item in items. + */ + groupBy( + items: Iterable, + keySelector: (item: T, index: number) => K, + ): Map; +} diff --git a/generated/lib.esnext.d.ts b/generated/lib.esnext.d.ts index f74a6d6..1352ca7 100644 --- a/generated/lib.esnext.d.ts +++ b/generated/lib.esnext.d.ts @@ -3,3 +3,6 @@ /// /// /// +/// +/// +/// diff --git a/generated/lib.esnext.disposable.d.ts b/generated/lib.esnext.disposable.d.ts index 6390e39..876c675 100644 --- a/generated/lib.esnext.disposable.d.ts +++ b/generated/lib.esnext.disposable.d.ts @@ -28,7 +28,7 @@ interface SuppressedError extends Error { // error: any; // suppressed: any; -interface SuppressedErrorConstructor extends ErrorConstructor { +interface SuppressedErrorConstructor { new (error: any, suppressed: any, message?: string): SuppressedError; (error: any, suppressed: any, message?: string): SuppressedError; readonly prototype: SuppressedError; diff --git a/generated/lib.esnext.full.d.ts b/generated/lib.esnext.full.d.ts index e5ce2ab..77fc037 100644 --- a/generated/lib.esnext.full.d.ts +++ b/generated/lib.esnext.full.d.ts @@ -4,3 +4,4 @@ /// /// /// +/// diff --git a/generated/lib.esnext.object.d.ts b/generated/lib.esnext.object.d.ts new file mode 100644 index 0000000..61c2ae4 --- /dev/null +++ b/generated/lib.esnext.object.d.ts @@ -0,0 +1,12 @@ +/// +interface ObjectConstructor { + /** + * Groups members of an iterable according to the return value of the passed callback. + * @param items An iterable. + * @param keySelector A callback which will be invoked for each item in items. + */ + groupBy( + items: Iterable, + keySelector: (item: T, index: number) => K, + ): Partial>; +} diff --git a/generated/lib.esnext.promise.d.ts b/generated/lib.esnext.promise.d.ts new file mode 100644 index 0000000..d8d405b --- /dev/null +++ b/generated/lib.esnext.promise.d.ts @@ -0,0 +1,18 @@ +/// +interface PromiseWithResolvers { + promise: Promise; + resolve: (value: T | PromiseLike) => void; + reject: (reason?: any) => void; +} + +interface PromiseConstructor { + /** + * Creates a new Promise and returns it in an object, along with its resolve and reject functions. + * @returns An object with the properties `promise`, `resolve`, and `reject`. + * + * ```ts + * const { promise, resolve, reject } = Promise.withResolvers(); + * ``` + */ + withResolvers(): PromiseWithResolvers; +} diff --git a/generated/lib.webworker.asynciterable.d.ts b/generated/lib.webworker.asynciterable.d.ts new file mode 100644 index 0000000..50258c0 --- /dev/null +++ b/generated/lib.webworker.asynciterable.d.ts @@ -0,0 +1,11 @@ +/// +///////////////////////////// +/// Worker Async Iterable APIs +///////////////////////////// + +interface FileSystemDirectoryHandle { + [Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>; + entries(): AsyncIterableIterator<[string, FileSystemHandle]>; + keys(): AsyncIterableIterator; + values(): AsyncIterableIterator; +} diff --git a/generated/lib.webworker.d.ts b/generated/lib.webworker.d.ts index c63062e..35419e6 100644 --- a/generated/lib.webworker.d.ts +++ b/generated/lib.webworker.d.ts @@ -165,7 +165,7 @@ interface EcdsaParams extends Algorithm { } interface EncodedVideoChunkInit { - data: BufferSource; + data: AllowSharedBufferSource; duration?: number; timestamp: number; type: EncodedVideoChunkType; @@ -249,7 +249,6 @@ interface FontFaceDescriptors { stretch?: string; style?: string; unicodeRange?: string; - variant?: string; weight?: string; } @@ -414,32 +413,21 @@ interface NavigationPreloadState { headerValue?: string; } -interface NotificationAction { - action: string; - icon?: string; - title: string; -} - interface NotificationEventInit extends ExtendableEventInit { action?: string; notification: Notification; } interface NotificationOptions { - actions?: NotificationAction[]; badge?: string; body?: string; data?: any; dir?: NotificationDirection; icon?: string; - image?: string; lang?: string; - renotify?: boolean; requireInteraction?: boolean; silent?: boolean | null; tag?: string; - timestamp?: EpochTimeStamp; - vibrate?: VibratePattern; } interface Pbkdf2Params extends Algorithm { @@ -517,16 +505,21 @@ interface QueuingStrategyInit { interface RTCEncodedAudioFrameMetadata { contributingSources?: number[]; + payloadType?: number; + sequenceNumber?: number; synchronizationSource?: number; } interface RTCEncodedVideoFrameMetadata { + contributingSources?: number[]; dependencies?: number[]; frameId?: number; height?: number; + payloadType?: number; spatialIndex?: number; synchronizationSource?: number; temporalIndex?: number; + timestamp?: number; width?: number; } @@ -587,6 +580,7 @@ interface RequestInit { method?: string; /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */ mode?: RequestMode; + priority?: RequestPriority; /** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */ redirect?: RequestRedirect; /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */ @@ -759,7 +753,7 @@ interface VideoDecoderConfig { codedHeight?: number; codedWidth?: number; colorSpace?: VideoColorSpaceInit; - description?: BufferSource; + description?: AllowSharedBufferSource; displayAspectHeight?: number; displayAspectWidth?: number; hardwareAcceleration?: HardwareAcceleration; @@ -872,7 +866,7 @@ interface WebTransportOptions { } interface WebTransportSendStreamOptions { - sendOrder?: number | null; + sendOrder?: number; } interface WorkerOptions { @@ -1022,7 +1016,9 @@ interface AbstractWorker { } interface AnimationFrameProvider { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */ cancelAnimationFrame(handle: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */ requestAnimationFrame(callback: FrameRequestCallback): number; } @@ -1862,10 +1858,20 @@ interface CanvasTextDrawingStyles { font: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */ fontKerning: CanvasFontKerning; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */ + fontStretch: CanvasFontStretch; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */ + fontVariantCaps: CanvasFontVariantCaps; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */ + letterSpacing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */ textAlign: CanvasTextAlign; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) */ textBaseline: CanvasTextBaseline; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textRendering) */ + textRendering: CanvasTextRendering; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/wordSpacing) */ + wordSpacing: string; } interface CanvasTransform { @@ -2488,6 +2494,7 @@ declare var DecompressionStream: { interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap { message: MessageEvent; messageerror: MessageEvent; + rtctransform: Event; } /** @@ -2512,6 +2519,8 @@ interface DedicatedWorkerGlobalScope onmessageerror: | ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) */ + onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null; /** * Aborts dedicatedWorkerGlobal. * @@ -2645,7 +2654,7 @@ interface EncodedVideoChunk { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type) */ readonly type: EncodedVideoChunkType; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo) */ - copyTo(destination: BufferSource): void; + copyTo(destination: AllowSharedBufferSource): void; } declare var EncodedVideoChunk: { @@ -3090,7 +3099,11 @@ interface FileReader extends EventTarget { abort(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) */ readAsArrayBuffer(blob: Blob): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString) */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString) + */ readAsBinaryString(blob: Blob): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) */ readAsDataURL(blob: Blob): void; @@ -3297,8 +3310,6 @@ interface FontFace { style: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */ unicodeRange: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/variant) */ - variant: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */ weight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */ @@ -4646,6 +4657,8 @@ interface NotificationEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification) */ interface Notification extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge) */ + readonly badge: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/body) */ readonly body: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/data) */ @@ -4664,6 +4677,8 @@ interface Notification extends EventTarget { onerror: ((this: Notification, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */ onshow: ((this: Notification, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction) */ + readonly requireInteraction: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */ readonly silent: boolean | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */ @@ -5377,9 +5392,13 @@ declare var PushSubscriptionOptions: { new (): PushSubscriptionOptions; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame) */ interface RTCEncodedAudioFrame { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data) */ data: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp) */ readonly timestamp: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/getMetadata) */ getMetadata(): RTCEncodedAudioFrameMetadata; } @@ -5388,10 +5407,15 @@ declare var RTCEncodedAudioFrame: { new (): RTCEncodedAudioFrame; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame) */ interface RTCEncodedVideoFrame { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/data) */ data: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp) */ readonly timestamp: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type) */ readonly type: RTCEncodedVideoFrameType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/getMetadata) */ getMetadata(): RTCEncodedVideoFrameMetadata; } @@ -5400,6 +5424,36 @@ declare var RTCEncodedVideoFrame: { new (): RTCEncodedVideoFrame; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer) */ +interface RTCRtpScriptTransformer extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/options) */ + readonly options: any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/readable) */ + readonly readable: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/writable) */ + readonly writable: WritableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/generateKeyFrame) */ + generateKeyFrame(rid?: string): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/sendKeyFrameRequest) */ + sendKeyFrameRequest(): Promise; +} + +declare var RTCRtpScriptTransformer: { + prototype: RTCRtpScriptTransformer; + new (): RTCRtpScriptTransformer; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent) */ +interface RTCTransformEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent/transformer) */ + readonly transformer: RTCRtpScriptTransformer; +} + +declare var RTCTransformEvent: { + prototype: RTCTransformEvent; + new (): RTCTransformEvent; +}; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController) */ interface ReadableByteStreamController { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) */ @@ -5809,6 +5863,7 @@ interface ServiceWorkerContainer extends EventTarget { oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */ onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */ onmessageerror: | ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null; @@ -5914,6 +5969,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope { | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/registration) */ readonly registration: ServiceWorkerRegistration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/serviceWorker) */ readonly serviceWorker: ServiceWorker; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/skipWaiting) */ skipWaiting(): Promise; @@ -6423,6 +6479,24 @@ interface TextMetrics { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxRight) */ readonly actualBoundingBoxRight: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/alphabeticBaseline) + */ + readonly alphabeticBaseline: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightAscent) + */ + readonly emHeightAscent: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightDescent) + */ + readonly emHeightDescent: number; /** * Returns the measurement described below. * @@ -6435,6 +6509,18 @@ interface TextMetrics { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxDescent) */ readonly fontBoundingBoxDescent: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/hangingBaseline) + */ + readonly hangingBaseline: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/ideographicBaseline) + */ + readonly ideographicBaseline: number; /** * Returns the measurement described below. * @@ -6738,7 +6824,7 @@ interface VideoFrame { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close) */ close(): void; copyTo( - destination: BufferSource, + destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions, ): Promise; } @@ -6746,7 +6832,7 @@ interface VideoFrame { declare var VideoFrame: { prototype: VideoFrame; new (image: CanvasImageSource, init?: VideoFrameInit): VideoFrame; - new (data: BufferSource, init: VideoFrameBufferInit): VideoFrame; + new (data: AllowSharedBufferSource, init: VideoFrameBufferInit): VideoFrame; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_color_buffer_float) */ @@ -6916,42 +7002,42 @@ interface WEBGL_multi_draw { multiDrawArraysInstancedWEBGL( mode: GLenum, firstsList: Int32Array | GLint[], - firstsOffset: GLuint, + firstsOffset: number, countsList: Int32Array | GLsizei[], - countsOffset: GLuint, + countsOffset: number, instanceCountsList: Int32Array | GLsizei[], - instanceCountsOffset: GLuint, + instanceCountsOffset: number, drawcount: GLsizei, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */ multiDrawArraysWEBGL( mode: GLenum, firstsList: Int32Array | GLint[], - firstsOffset: GLuint, + firstsOffset: number, countsList: Int32Array | GLsizei[], - countsOffset: GLuint, + countsOffset: number, drawcount: GLsizei, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */ multiDrawElementsInstancedWEBGL( mode: GLenum, countsList: Int32Array | GLsizei[], - countsOffset: GLuint, + countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], - offsetsOffset: GLuint, + offsetsOffset: number, instanceCountsList: Int32Array | GLsizei[], - instanceCountsOffset: GLuint, + instanceCountsOffset: number, drawcount: GLsizei, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */ multiDrawElementsWEBGL( mode: GLenum, countsList: Int32Array | GLsizei[], - countsOffset: GLuint, + countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], - offsetsOffset: GLuint, + offsetsOffset: number, drawcount: GLsizei, ): void; } @@ -6977,7 +7063,6 @@ declare var WebGL2RenderingContext: { readonly STENCIL: 0x1802; readonly RED: 0x1903; readonly RGB8: 0x8051; - readonly RGBA8: 0x8058; readonly RGB10_A2: 0x8059; readonly TEXTURE_BINDING_3D: 0x806a; readonly UNPACK_SKIP_IMAGES: 0x806d; @@ -7488,6 +7573,7 @@ declare var WebGL2RenderingContext: { readonly RENDERBUFFER: 0x8d41; readonly RGBA4: 0x8056; readonly RGB5_A1: 0x8057; + readonly RGBA8: 0x8058; readonly RGB565: 0x8d62; readonly DEPTH_COMPONENT16: 0x81a5; readonly STENCIL_INDEX8: 0x8d48; @@ -7579,21 +7665,21 @@ interface WebGL2RenderingContextBase { buffer: GLenum, drawbuffer: GLint, values: Float32List, - srcOffset?: GLuint, + srcOffset?: number, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ clearBufferiv( buffer: GLenum, drawbuffer: GLint, values: Int32List, - srcOffset?: GLuint, + srcOffset?: number, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ clearBufferuiv( buffer: GLenum, drawbuffer: GLint, values: Uint32List, - srcOffset?: GLuint, + srcOffset?: number, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) */ clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum; @@ -7618,7 +7704,7 @@ interface WebGL2RenderingContextBase { depth: GLsizei, border: GLint, srcData: ArrayBufferView, - srcOffset?: GLuint, + srcOffset?: number, srcLengthOverride?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D) */ @@ -7646,7 +7732,7 @@ interface WebGL2RenderingContextBase { depth: GLsizei, format: GLenum, srcData: ArrayBufferView, - srcOffset?: GLuint, + srcOffset?: number, srcLengthOverride?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyBufferSubData) */ @@ -7749,7 +7835,7 @@ interface WebGL2RenderingContextBase { target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, - dstOffset?: GLuint, + dstOffset?: number, length?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getFragDataLocation) */ @@ -7869,7 +7955,7 @@ interface WebGL2RenderingContextBase { format: GLenum, type: GLenum, srcData: ArrayBufferView, - srcOffset: GLuint, + srcOffset: number, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage2D) */ texStorage2D( @@ -7927,7 +8013,7 @@ interface WebGL2RenderingContextBase { format: GLenum, type: GLenum, srcData: ArrayBufferView | null, - srcOffset?: GLuint, + srcOffset?: number, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */ transformFeedbackVaryings( @@ -7941,7 +8027,7 @@ interface WebGL2RenderingContextBase { uniform1uiv( location: WebGLUniformLocation | null, data: Uint32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ @@ -7954,7 +8040,7 @@ interface WebGL2RenderingContextBase { uniform2uiv( location: WebGLUniformLocation | null, data: Uint32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ @@ -7968,7 +8054,7 @@ interface WebGL2RenderingContextBase { uniform3uiv( location: WebGLUniformLocation | null, data: Uint32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ @@ -7983,7 +8069,7 @@ interface WebGL2RenderingContextBase { uniform4uiv( location: WebGLUniformLocation | null, data: Uint32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformBlockBinding) */ @@ -7997,7 +8083,7 @@ interface WebGL2RenderingContextBase { location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ @@ -8005,7 +8091,7 @@ interface WebGL2RenderingContextBase { location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ @@ -8013,7 +8099,7 @@ interface WebGL2RenderingContextBase { location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ @@ -8021,7 +8107,7 @@ interface WebGL2RenderingContextBase { location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ @@ -8029,7 +8115,7 @@ interface WebGL2RenderingContextBase { location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ @@ -8037,7 +8123,7 @@ interface WebGL2RenderingContextBase { location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribDivisor) */ @@ -8078,7 +8164,6 @@ interface WebGL2RenderingContextBase { readonly STENCIL: 0x1802; readonly RED: 0x1903; readonly RGB8: 0x8051; - readonly RGBA8: 0x8058; readonly RGB10_A2: 0x8059; readonly TEXTURE_BINDING_3D: 0x806a; readonly UNPACK_SKIP_IMAGES: 0x806d; @@ -8334,25 +8419,29 @@ interface WebGL2RenderingContextBase { interface WebGL2RenderingContextOverloads { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */ bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void; - bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void; + bufferData( + target: GLenum, + srcData: AllowSharedBufferSource | null, + usage: GLenum, + ): void; bufferData( target: GLenum, srcData: ArrayBufferView, usage: GLenum, - srcOffset: GLuint, + srcOffset: number, length?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */ bufferSubData( target: GLenum, dstByteOffset: GLintptr, - srcData: BufferSource, + srcData: AllowSharedBufferSource, ): void; bufferSubData( target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, - srcOffset: GLuint, + srcOffset: number, length?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */ @@ -8374,7 +8463,7 @@ interface WebGL2RenderingContextOverloads { height: GLsizei, border: GLint, srcData: ArrayBufferView, - srcOffset?: GLuint, + srcOffset?: number, srcLengthOverride?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */ @@ -8398,7 +8487,7 @@ interface WebGL2RenderingContextOverloads { height: GLsizei, format: GLenum, srcData: ArrayBufferView, - srcOffset?: GLuint, + srcOffset?: number, srcLengthOverride?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */ @@ -8428,7 +8517,7 @@ interface WebGL2RenderingContextOverloads { format: GLenum, type: GLenum, dstData: ArrayBufferView, - dstOffset: GLuint, + dstOffset: number, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */ texImage2D( @@ -8482,7 +8571,7 @@ interface WebGL2RenderingContextOverloads { format: GLenum, type: GLenum, srcData: ArrayBufferView, - srcOffset: GLuint, + srcOffset: number, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */ texSubImage2D( @@ -8537,62 +8626,62 @@ interface WebGL2RenderingContextOverloads { format: GLenum, type: GLenum, srcData: ArrayBufferView, - srcOffset: GLuint, + srcOffset: number, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform1fv( location: WebGLUniformLocation | null, data: Float32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform1iv( location: WebGLUniformLocation | null, data: Int32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform2fv( location: WebGLUniformLocation | null, data: Float32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform2iv( location: WebGLUniformLocation | null, data: Int32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform3fv( location: WebGLUniformLocation | null, data: Float32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform3iv( location: WebGLUniformLocation | null, data: Int32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform4fv( location: WebGLUniformLocation | null, data: Float32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform4iv( location: WebGLUniformLocation | null, data: Int32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ @@ -8600,7 +8689,7 @@ interface WebGL2RenderingContextOverloads { location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ @@ -8608,7 +8697,7 @@ interface WebGL2RenderingContextOverloads { location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ @@ -8616,7 +8705,7 @@ interface WebGL2RenderingContextOverloads { location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; } @@ -8983,6 +9072,7 @@ declare var WebGLRenderingContext: { readonly RENDERBUFFER: 0x8d41; readonly RGBA4: 0x8056; readonly RGB5_A1: 0x8057; + readonly RGBA8: 0x8058; readonly RGB565: 0x8d62; readonly DEPTH_COMPONENT16: 0x81a5; readonly STENCIL_INDEX8: 0x8d48; @@ -9730,6 +9820,7 @@ interface WebGLRenderingContextBase { readonly RENDERBUFFER: 0x8d41; readonly RGBA4: 0x8056; readonly RGB5_A1: 0x8057; + readonly RGBA8: 0x8058; readonly RGB565: 0x8d62; readonly DEPTH_COMPONENT16: 0x81a5; readonly STENCIL_INDEX8: 0x8d48; @@ -9771,9 +9862,17 @@ interface WebGLRenderingContextBase { interface WebGLRenderingContextOverloads { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */ bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void; - bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void; + bufferData( + target: GLenum, + data: AllowSharedBufferSource | null, + usage: GLenum, + ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */ - bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void; + bufferSubData( + target: GLenum, + offset: GLintptr, + data: AllowSharedBufferSource, + ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */ compressedTexImage2D( target: GLenum, @@ -10139,13 +10238,13 @@ interface WebTransportDatagramDuplexStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark) */ incomingHighWaterMark: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */ - incomingMaxAge: number; + incomingMaxAge: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize) */ readonly maxDatagramSize: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark) */ outgoingHighWaterMark: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */ - outgoingMaxAge: number; + outgoingMaxAge: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable) */ readonly readable: ReadableStream; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ @@ -10780,44 +10879,44 @@ declare var XMLHttpRequestUpload: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console) */ interface Console { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static) */ assert(condition?: boolean, ...data: any[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static) */ clear(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) */ count(label?: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) */ countReset(label?: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) */ debug(...data: any[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */ dir(item?: any, options?: any): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static) */ dirxml(...data: any[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static) */ error(...data: any[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) */ group(...data: any[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) */ groupCollapsed(...data: any[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) */ groupEnd(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) */ info(...data: any[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static) */ log(...data: any[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static) */ table(tabularData?: any, properties?: string[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) */ time(label?: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) */ timeEnd(label?: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) */ timeLog(label?: string, ...data: any[]): void; timeStamp(label?: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) */ trace(...data: any[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static) */ warn(...data: any[]): void; } @@ -10832,11 +10931,11 @@ declare namespace WebAssembly { (message?: string): CompileError; }; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global) */ interface Global { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/value) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/value) */ value: ValueTypeMap[T]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/valueOf) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/valueOf) */ valueOf(): ValueTypeMap[T]; } @@ -10848,9 +10947,9 @@ declare namespace WebAssembly { ): Global; }; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance) */ interface Instance { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance/exports) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance/exports) */ readonly exports: Exports; } @@ -10867,11 +10966,11 @@ declare namespace WebAssembly { (message?: string): LinkError; }; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory) */ interface Memory { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory/buffer) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/buffer) */ readonly buffer: ArrayBuffer; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory/grow) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/grow) */ grow(delta: number): number; } @@ -10880,17 +10979,17 @@ declare namespace WebAssembly { new (descriptor: MemoryDescriptor): Memory; }; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module) */ interface Module {} var Module: { prototype: Module; new (bytes: BufferSource): Module; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module/customSections) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/customSections_static) */ customSections(moduleObject: Module, sectionName: string): ArrayBuffer[]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module/exports) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/exports_static) */ exports(moduleObject: Module): ModuleExportDescriptor[]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module/imports) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/imports_static) */ imports(moduleObject: Module): ModuleImportDescriptor[]; }; @@ -10902,15 +11001,15 @@ declare namespace WebAssembly { (message?: string): RuntimeError; }; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table) */ interface Table { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/length) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/length) */ readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/get) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/get) */ get(index: number): any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/grow) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/grow) */ grow(delta: number, value?: any): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/set) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/set) */ set(index: number, value?: any): void; } @@ -10970,13 +11069,13 @@ declare namespace WebAssembly { type Imports = Record; type ModuleImports = Record; type ValueType = keyof ValueTypeMap; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compile) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compileStreaming) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compileStreaming_static) */ function compileStreaming( source: Response | PromiseLike, ): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiate) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiate_static) */ function instantiate( bytes: BufferSource, importObject?: Imports, @@ -10985,12 +11084,12 @@ declare namespace WebAssembly { moduleObject: Module, importObject?: Imports, ): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiateStreaming) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiateStreaming_static) */ function instantiateStreaming( source: Response | PromiseLike, importObject?: Imports, ): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/validate) */ + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/validate_static) */ function validate(bytes: BufferSource): boolean; } @@ -11100,6 +11199,10 @@ declare var onmessage: 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: Event) => any) + | null; /** * Aborts dedicatedWorkerGlobal. * @@ -11241,7 +11344,9 @@ declare function structuredClone( value: T, options?: StructuredSerializeOptions, ): T; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */ declare function cancelAnimationFrame(handle: number): void; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */ declare function requestAnimationFrame(callback: FrameRequestCallback): number; declare function addEventListener< K extends keyof DedicatedWorkerGlobalScopeEventMap, @@ -11341,7 +11446,6 @@ type Transferable = | VideoFrame | ArrayBuffer; type Uint32List = Uint32Array | GLuint[]; -type VibratePattern = number | number[]; type XMLHttpRequestBodyInit = | Blob | BufferSource @@ -11531,6 +11635,7 @@ type RequestDestination = | "worker" | "xslt"; type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin"; +type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = diff --git a/generated/lib.webworker.iterable.d.ts b/generated/lib.webworker.iterable.d.ts index eb665f8..efe66ba 100644 --- a/generated/lib.webworker.iterable.d.ts +++ b/generated/lib.webworker.iterable.d.ts @@ -147,6 +147,11 @@ interface SubtleCrypto { keyUsages: Iterable, ): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */ + generateKey( + algorithm: "Ed25519", + extractable: boolean, + keyUsages: ReadonlyArray<"sign" | "verify">, + ): Promise; generateKey( algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, @@ -229,42 +234,42 @@ interface WEBGL_multi_draw { multiDrawArraysInstancedWEBGL( mode: GLenum, firstsList: Int32Array | Iterable, - firstsOffset: GLuint, + firstsOffset: number, countsList: Int32Array | Iterable, - countsOffset: GLuint, + countsOffset: number, instanceCountsList: Int32Array | Iterable, - instanceCountsOffset: GLuint, + instanceCountsOffset: number, drawcount: GLsizei, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */ multiDrawArraysWEBGL( mode: GLenum, firstsList: Int32Array | Iterable, - firstsOffset: GLuint, + firstsOffset: number, countsList: Int32Array | Iterable, - countsOffset: GLuint, + countsOffset: number, drawcount: GLsizei, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */ multiDrawElementsInstancedWEBGL( mode: GLenum, countsList: Int32Array | Iterable, - countsOffset: GLuint, + countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable, - offsetsOffset: GLuint, + offsetsOffset: number, instanceCountsList: Int32Array | Iterable, - instanceCountsOffset: GLuint, + instanceCountsOffset: number, drawcount: GLsizei, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */ multiDrawElementsWEBGL( mode: GLenum, countsList: Int32Array | Iterable, - countsOffset: GLuint, + countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable, - offsetsOffset: GLuint, + offsetsOffset: number, drawcount: GLsizei, ): void; } @@ -275,21 +280,21 @@ interface WebGL2RenderingContextBase { buffer: GLenum, drawbuffer: GLint, values: Iterable, - srcOffset?: GLuint, + srcOffset?: number, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ clearBufferiv( buffer: GLenum, drawbuffer: GLint, values: Iterable, - srcOffset?: GLuint, + srcOffset?: number, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ clearBufferuiv( buffer: GLenum, drawbuffer: GLint, values: Iterable, - srcOffset?: GLuint, + srcOffset?: number, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */ drawBuffers(buffers: Iterable): void; @@ -325,28 +330,28 @@ interface WebGL2RenderingContextBase { uniform1uiv( location: WebGLUniformLocation | null, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ uniform2uiv( location: WebGLUniformLocation | null, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ uniform3uiv( location: WebGLUniformLocation | null, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ uniform4uiv( location: WebGLUniformLocation | null, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ @@ -354,7 +359,7 @@ interface WebGL2RenderingContextBase { location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ @@ -362,7 +367,7 @@ interface WebGL2RenderingContextBase { location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ @@ -370,7 +375,7 @@ interface WebGL2RenderingContextBase { location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ @@ -378,7 +383,7 @@ interface WebGL2RenderingContextBase { location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ @@ -386,7 +391,7 @@ interface WebGL2RenderingContextBase { location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ @@ -394,7 +399,7 @@ interface WebGL2RenderingContextBase { location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ @@ -408,56 +413,56 @@ interface WebGL2RenderingContextOverloads { uniform1fv( location: WebGLUniformLocation | null, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform1iv( location: WebGLUniformLocation | null, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform2fv( location: WebGLUniformLocation | null, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform2iv( location: WebGLUniformLocation | null, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform3fv( location: WebGLUniformLocation | null, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform3iv( location: WebGLUniformLocation | null, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform4fv( location: WebGLUniformLocation | null, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform4iv( location: WebGLUniformLocation | null, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ @@ -465,7 +470,7 @@ interface WebGL2RenderingContextOverloads { location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ @@ -473,7 +478,7 @@ interface WebGL2RenderingContextOverloads { location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ @@ -481,7 +486,7 @@ interface WebGL2RenderingContextOverloads { location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, - srcOffset?: GLuint, + srcOffset?: number, srcLength?: GLuint, ): void; } diff --git a/package-lock.json b/package-lock.json index 2e23623..e514a7a 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.3.3" + "typescript": "^5.4.3" } }, "node_modules/@jsdevtools/ez-spawn": { @@ -256,9 +256,9 @@ } }, "node_modules/typescript": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", - "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", + "version": "5.4.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.3.tgz", + "integrity": "sha512-KrPd3PKaCLr78MalgiwJnA25Nm8HAmdwN3mYUYZgG/wizIo9EainNVQI9/yDavtVFRN2h3k8uf3GLHuhDMgEHg==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -474,9 +474,9 @@ "dev": true }, "typescript": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", - "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", + "version": "5.4.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.3.tgz", + "integrity": "sha512-KrPd3PKaCLr78MalgiwJnA25Nm8HAmdwN3mYUYZgG/wizIo9EainNVQI9/yDavtVFRN2h3k8uf3GLHuhDMgEHg==", "dev": true }, "typical": { diff --git a/package.json b/package.json index 370fbc8..1e52f77 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.3.3" + "typescript": "^5.4.3" }, "scripts": { "build:tsc": "tsc", @@ -24,4 +24,4 @@ "keywords": [], "author": "uhyo ", "license": "Apache-2.0" -} +} \ No newline at end of file diff --git a/tests/package-lock.json b/tests/package-lock.json index ee59fb1..6a696ce 100644 --- a/tests/package-lock.json +++ b/tests/package-lock.json @@ -28,7 +28,7 @@ "devDependencies": { "@types/node": "^16.9.6", "tsd": "^0.30.0", - "typescript": "^5.3.3" + "typescript": "^5.4.3" } }, "../dist-package/decorators": { @@ -1586,9 +1586,9 @@ } }, "node_modules/typescript": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", - "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", + "version": "5.4.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.3.tgz", + "integrity": "sha512-KrPd3PKaCLr78MalgiwJnA25Nm8HAmdwN3mYUYZgG/wizIo9EainNVQI9/yDavtVFRN2h3k8uf3GLHuhDMgEHg==", "dev": true, "bin": { "tsc": "bin/tsc", diff --git a/tests/package.json b/tests/package.json index 5ef01ae..d277153 100644 --- a/tests/package.json +++ b/tests/package.json @@ -15,7 +15,7 @@ "devDependencies": { "@types/node": "^16.9.6", "tsd": "^0.30.0", - "typescript": "^5.3.3" + "typescript": "^5.4.3" }, "dependencies": { "@typescript/lib-decorators": "file:../dist-package/decorators", @@ -35,4 +35,4 @@ "@typescript/lib-scripthost": "file:../dist-package/scripthost", "@typescript/lib-webworker": "file:../dist-package/webworker" } -} +} \ No newline at end of file