massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-tsserver / node_modules / typescript / lib / lib.es5.d.ts
index 48beead1ab5dbb3d43cb7436e3cc7f9f232d533a..8d9cf1eb22b00497bdfab38547fb5c4321b586be 100644 (file)
@@ -33,12 +33,12 @@ declare function eval(x: string): any;
 \r
 /**\r
  * Converts a string to an integer.\r
- * @param s A string to convert into a number.\r
- * @param radix A value between 2 and 36 that specifies the base of the number in numString.\r
+ * @param string A string to convert into a number.\r
+ * @param radix A value between 2 and 36 that specifies the base of the number in `string`.\r
  * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r
  * All other strings are considered decimal.\r
  */\r
-declare function parseInt(s: string, radix?: number): number;\r
+declare function parseInt(string: string, radix?: number): number;\r
 \r
 /**\r
  * Converts a string to a floating-point number.\r
@@ -84,12 +84,14 @@ declare function encodeURIComponent(uriComponent: string | number | boolean): st
 \r
 /**\r
  * Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.\r
+ * @deprecated A legacy feature for browser compatibility\r
  * @param string A string value\r
  */\r
 declare function escape(string: string): string;\r
 \r
 /**\r
  * Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents.\r
+ * @deprecated A legacy feature for browser compatibility\r
  * @param string A string value\r
  */\r
 declare function unescape(string: string): string;\r
@@ -197,14 +199,14 @@ interface ObjectConstructor {
      * @param p The property name.\r
      * @param attributes Descriptor for the property. It can be for a data property or an accessor property.\r
      */\r
-    defineProperty(o: any, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): any;\r
+    defineProperty<T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): T;\r
 \r
     /**\r
      * Adds one or more properties to an object, and/or modifies attributes of existing properties.\r
      * @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.\r
      * @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.\r
      */\r
-    defineProperties(o: any, properties: PropertyDescriptorMap & ThisType<any>): any;\r
+    defineProperties<T>(o: T, properties: PropertyDescriptorMap & ThisType<any>): T;\r
 \r
     /**\r
      * Prevents the modification of attributes of existing properties, and prevents the addition of new properties.\r
@@ -214,13 +216,13 @@ interface ObjectConstructor {
 \r
     /**\r
      * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.\r
-     * @param o Object on which to lock the attributes.\r
+     * @param a Object on which to lock the attributes.\r
      */\r
     freeze<T>(a: T[]): readonly T[];\r
 \r
     /**\r
      * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.\r
-     * @param o Object on which to lock the attributes.\r
+     * @param f Object on which to lock the attributes.\r
      */\r
     freeze<T extends Function>(f: T): T;\r
 \r
@@ -503,6 +505,7 @@ interface String {
     // IE extensions\r
     /**\r
      * Gets a substring beginning at the specified location and having the specified length.\r
+     * @deprecated A legacy feature for browser compatibility\r
      * @param from The starting position of the desired substring. The index of the first character in the string is zero.\r
      * @param length The number of characters to include in the returned substring.\r
      */\r
@@ -614,6 +617,23 @@ interface TemplateStringsArray extends ReadonlyArray<string> {
 interface ImportMeta {\r
 }\r
 \r
+/**\r
+ * The type for the optional second argument to `import()`.\r
+ *\r
+ * If your host environment supports additional options, this type may be\r
+ * augmented via interface merging.\r
+ */\r
+interface ImportCallOptions {\r
+    assert?: ImportAssertions;\r
+}\r
+\r
+/**\r
+ * The type for the `assert` property of the optional second argument to `import()`.\r
+ */\r
+interface ImportAssertions {\r
+    [key: string]: string;\r
+}\r
+\r
 interface Math {\r
     /** The mathematical constant e. This is Euler's number, the base of natural logarithms. */\r
     readonly E: number;\r
@@ -944,7 +964,8 @@ interface RegExp {
     lastIndex: number;\r
 \r
     // Non-standard extensions\r
-    compile(): this;\r
+    /** @deprecated A legacy feature for browser compatibility */\r
+    compile(pattern: string, flags?: string): this;\r
 }\r
 \r
 interface RegExpConstructor {\r
@@ -955,16 +976,44 @@ interface RegExpConstructor {
     readonly prototype: RegExp;\r
 \r
     // Non-standard extensions\r
+    /** @deprecated A legacy feature for browser compatibility */\r
     $1: string;\r
+    /** @deprecated A legacy feature for browser compatibility */\r
     $2: string;\r
+    /** @deprecated A legacy feature for browser compatibility */\r
     $3: string;\r
+    /** @deprecated A legacy feature for browser compatibility */\r
     $4: string;\r
+    /** @deprecated A legacy feature for browser compatibility */\r
     $5: string;\r
+    /** @deprecated A legacy feature for browser compatibility */\r
     $6: string;\r
+    /** @deprecated A legacy feature for browser compatibility */\r
     $7: string;\r
+    /** @deprecated A legacy feature for browser compatibility */\r
     $8: string;\r
+    /** @deprecated A legacy feature for browser compatibility */\r
     $9: string;\r
+    /** @deprecated A legacy feature for browser compatibility */\r
+    input: string;\r
+    /** @deprecated A legacy feature for browser compatibility */\r
+    $_: string;\r
+    /** @deprecated A legacy feature for browser compatibility */\r
     lastMatch: string;\r
+    /** @deprecated A legacy feature for browser compatibility */\r
+    "$&": string;\r
+    /** @deprecated A legacy feature for browser compatibility */\r
+    lastParen: string;\r
+    /** @deprecated A legacy feature for browser compatibility */\r
+    "$+": string;\r
+    /** @deprecated A legacy feature for browser compatibility */\r
+    leftContext: string;\r
+    /** @deprecated A legacy feature for browser compatibility */\r
+    "$`": string;\r
+    /** @deprecated A legacy feature for browser compatibility */\r
+    rightContext: string;\r
+    /** @deprecated A legacy feature for browser compatibility */\r
+    "$'": string;\r
 }\r
 \r
 declare var RegExp: RegExpConstructor;\r
@@ -1067,7 +1116,7 @@ interface JSON {
     /**\r
      * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.\r
      * @param value A JavaScript value, usually an object or array, to be converted.\r
-     * @param replacer An array of strings and numbers that acts as a approved list for selecting the object properties that will be stringified.\r
+     * @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.\r
      * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.\r
      */\r
     stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;\r
@@ -1093,7 +1142,7 @@ interface ReadonlyArray<T> {
      */\r
     toString(): string;\r
     /**\r
-     * Returns a string representation of an array. The elements are converted to string using their toLocalString methods.\r
+     * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.\r
      */\r
     toLocaleString(): string;\r
     /**\r
@@ -1131,22 +1180,31 @@ interface ReadonlyArray<T> {
     lastIndexOf(searchElement: T, fromIndex?: number): number;\r
     /**\r
      * Determines whether all the members of an array satisfy the specified test.\r
-     * @param callbackfn A function that accepts up to three arguments. The every method calls\r
-     * the callbackfn function for each element in the array until the callbackfn returns a value\r
+     * @param predicate A function that accepts up to three arguments. The every method calls\r
+     * the predicate function for each element in the array until the predicate returns a value\r
      * which is coercible to the Boolean value false, or until the end of the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
+     * If thisArg is omitted, undefined is used as the this value.\r
+     */\r
+    every<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): this is readonly S[];\r
+    /**\r
+     * Determines whether all the members of an array satisfy the specified test.\r
+     * @param predicate A function that accepts up to three arguments. The every method calls\r
+     * the predicate function for each element in the array until the predicate returns a value\r
+     * which is coercible to the Boolean value false, or until the end of the array.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    every(callbackfn: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;\r
+    every(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;\r
     /**\r
      * Determines whether the specified callback function returns true for any element of an array.\r
-     * @param callbackfn A function that accepts up to three arguments. The some method calls\r
-     * the callbackfn function for each element in the array until the callbackfn returns a value\r
+     * @param predicate A function that accepts up to three arguments. The some method calls\r
+     * the predicate function for each element in the array until the predicate returns a value\r
      * which is coercible to the Boolean value true, or until the end of the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    some(callbackfn: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;\r
+    some(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;\r
     /**\r
      * Performs the specified action for each element in an array.\r
      * @param callbackfn  A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.\r
@@ -1161,16 +1219,16 @@ interface ReadonlyArray<T> {
     map<U>(callbackfn: (value: T, index: number, array: readonly T[]) => U, thisArg?: any): U[];\r
     /**\r
      * Returns the elements of an array that meet the condition specified in a callback function.\r
-     * @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\r
+     * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\r
+     * @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.\r
      */\r
-    filter<S extends T>(callbackfn: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S[];\r
+    filter<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S[];\r
     /**\r
      * Returns the elements of an array that meet the condition specified in a callback function.\r
-     * @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\r
+     * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\r
+     * @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.\r
      */\r
-    filter(callbackfn: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T[];\r
+    filter(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T[];\r
     /**\r
      * 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.\r
      * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\r
@@ -1210,7 +1268,7 @@ interface ConcatArray<T> {
 \r
 interface Array<T> {\r
     /**\r
-     * Gets or sets the length of the array. This is a number one higher than the highest element defined in an array.\r
+     * Gets or sets the length of the array. This is a number one higher than the highest index in the array.\r
      */\r
     length: number;\r
     /**\r
@@ -1218,51 +1276,61 @@ interface Array<T> {
      */\r
     toString(): string;\r
     /**\r
-     * Returns a string representation of an array. The elements are converted to string using their toLocalString methods.\r
+     * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.\r
      */\r
     toLocaleString(): string;\r
     /**\r
      * Removes the last element from an array and returns it.\r
+     * If the array is empty, undefined is returned and the array is not modified.\r
      */\r
     pop(): T | undefined;\r
     /**\r
-     * Appends new elements to an array, and returns the new length of the array.\r
-     * @param items New elements of the Array.\r
+     * Appends new elements to the end of an array, and returns the new length of the array.\r
+     * @param items New elements to add to the array.\r
      */\r
     push(...items: T[]): number;\r
     /**\r
      * Combines two or more arrays.\r
-     * @param items Additional items to add to the end of array1.\r
+     * This method returns a new array without modifying any existing arrays.\r
+     * @param items Additional arrays and/or items to add to the end of the array.\r
      */\r
     concat(...items: ConcatArray<T>[]): T[];\r
     /**\r
      * Combines two or more arrays.\r
-     * @param items Additional items to add to the end of array1.\r
+     * This method returns a new array without modifying any existing arrays.\r
+     * @param items Additional arrays and/or items to add to the end of the array.\r
      */\r
     concat(...items: (T | ConcatArray<T>)[]): T[];\r
     /**\r
-     * Adds all the elements of an array separated by the specified separator string.\r
-     * @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.\r
+     * Adds all the elements of an array into a string, separated by the specified separator string.\r
+     * @param separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.\r
      */\r
     join(separator?: string): string;\r
     /**\r
-     * Reverses the elements in an Array.\r
+     * Reverses the elements in an array in place.\r
+     * This method mutates the array and returns a reference to the same array.\r
      */\r
     reverse(): T[];\r
     /**\r
      * Removes the first element from an array and returns it.\r
+     * If the array is empty, undefined is returned and the array is not modified.\r
      */\r
     shift(): T | undefined;\r
     /**\r
-     * Returns a section of an array.\r
-     * @param start The beginning of the specified portion of the array.\r
-     * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.\r
+     * Returns a copy of a section of an array.\r
+     * For both start and end, a negative index can be used to indicate an offset from the end of the array.\r
+     * For example, -2 refers to the second to last element of the array.\r
+     * @param start The beginning index of the specified portion of the array.\r
+     * If start is undefined, then the slice begins at index 0.\r
+     * @param end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.\r
+     * If end is undefined, then the slice extends to the end of the array.\r
      */\r
     slice(start?: number, end?: number): T[];\r
     /**\r
-     * Sorts an array.\r
+     * Sorts an array in place.\r
+     * This method mutates the array and returns a reference to the same array.\r
      * @param compareFn Function used to determine the order of the elements. It is expected to return\r
-     * a negative value if first argument is less than second argument, zero if they're equal and a positive\r
+     * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\r
      * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\r
      * ```ts\r
      * [11,2,22,1].sort((a, b) => a - b)\r
@@ -1273,6 +1341,7 @@ interface Array<T> {
      * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\r
      * @param start The zero-based location in the array from which to start removing elements.\r
      * @param deleteCount The number of elements to remove.\r
+     * @returns An array containing the elements that were deleted.\r
      */\r
     splice(start: number, deleteCount?: number): T[];\r
     /**\r
@@ -1280,43 +1349,53 @@ interface Array<T> {
      * @param start The zero-based location in the array from which to start removing elements.\r
      * @param deleteCount The number of elements to remove.\r
      * @param items Elements to insert into the array in place of the deleted elements.\r
+     * @returns An array containing the elements that were deleted.\r
      */\r
     splice(start: number, deleteCount: number, ...items: T[]): T[];\r
     /**\r
-     * Inserts new elements at the start of an array.\r
-     * @param items  Elements to insert at the start of the Array.\r
+     * Inserts new elements at the start of an array, and returns the new length of the array.\r
+     * @param items Elements to insert at the start of the array.\r
      */\r
     unshift(...items: T[]): number;\r
     /**\r
-     * Returns the index of the first occurrence of a value in an array.\r
+     * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.\r
      * @param searchElement The value to locate in the array.\r
      * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.\r
      */\r
     indexOf(searchElement: T, fromIndex?: number): number;\r
     /**\r
-     * Returns the index of the last occurrence of a specified value in an array.\r
+     * Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.\r
      * @param searchElement The value to locate in the array.\r
-     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.\r
+     * @param fromIndex The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.\r
      */\r
     lastIndexOf(searchElement: T, fromIndex?: number): number;\r
     /**\r
      * Determines whether all the members of an array satisfy the specified test.\r
-     * @param callbackfn A function that accepts up to three arguments. The every method calls\r
-     * the callbackfn function for each element in the array until the callbackfn returns a value\r
+     * @param predicate A function that accepts up to three arguments. The every method calls\r
+     * the predicate function for each element in the array until the predicate returns a value\r
      * which is coercible to the Boolean value false, or until the end of the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    every(callbackfn: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;\r
+    every<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): this is S[];\r
+    /**\r
+     * Determines whether all the members of an array satisfy the specified test.\r
+     * @param predicate A function that accepts up to three arguments. The every method calls\r
+     * the predicate function for each element in the array until the predicate returns a value\r
+     * which is coercible to the Boolean value false, or until the end of the array.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
+     * If thisArg is omitted, undefined is used as the this value.\r
+     */\r
+    every(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;\r
     /**\r
      * Determines whether the specified callback function returns true for any element of an array.\r
-     * @param callbackfn A function that accepts up to three arguments. The some method calls\r
-     * the callbackfn function for each element in the array until the callbackfn returns a value\r
+     * @param predicate A function that accepts up to three arguments. The some method calls\r
+     * the predicate function for each element in the array until the predicate returns a value\r
      * which is coercible to the Boolean value true, or until the end of the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    some(callbackfn: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;\r
+    some(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;\r
     /**\r
      * Performs the specified action for each element in an array.\r
      * @param callbackfn  A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.\r
@@ -1331,16 +1410,16 @@ interface Array<T> {
     map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];\r
     /**\r
      * Returns the elements of an array that meet the condition specified in a callback function.\r
-     * @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\r
+     * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\r
+     * @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.\r
      */\r
-    filter<S extends T>(callbackfn: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[];\r
+    filter<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[];\r
     /**\r
      * Returns the elements of an array that meet the condition specified in a callback function.\r
-     * @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\r
+     * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\r
+     * @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.\r
      */\r
-    filter(callbackfn: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T[];\r
+    filter(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T[];\r
     /**\r
      * 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.\r
      * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\r
@@ -1398,7 +1477,7 @@ declare type PropertyDecorator = (target: Object, propertyKey: string | symbol)
 declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;\r
 declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;\r
 \r
-declare type PromiseConstructorLike = new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;\r
+declare type PromiseConstructorLike = new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;\r
 \r
 interface PromiseLike<T> {\r
     /**\r
@@ -1430,6 +1509,17 @@ interface Promise<T> {
     catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;\r
 }\r
 \r
+/**\r
+ * Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to `never`. This emulates the behavior of `await`.\r
+ */\r
+type Awaited<T> =\r
+    T extends null | undefined ? T : // special case for `null | undefined` when not in `--strictNullChecks` mode\r
+        T extends object & { then(onfulfilled: infer F): any } ? // `await` only unwraps object types with a callable `then`. Non-object types are not unwrapped\r
+            F extends ((value: infer V) => any) ? // if the argument to `then` is callable, extracts the argument\r
+                Awaited<V> : // recursively unwrap the value\r
+                never : // the argument to `then` was not callable\r
+        T; // non-object or non-thenable\r
+\r
 interface ArrayLike<T> {\r
     readonly length: number;\r
     readonly [n: number]: T;\r
@@ -1498,7 +1588,7 @@ type Parameters<T extends (...args: any) => any> = T extends (...args: infer P)
 /**\r
  * Obtain the parameters of a constructor function type in a tuple\r
  */\r
-type ConstructorParameters<T extends new (...args: any) => any> = T extends new (...args: infer P) => any ? P : never;\r
+type ConstructorParameters<T extends abstract new (...args: any) => any> = T extends abstract new (...args: infer P) => any ? P : never;\r
 \r
 /**\r
  * Obtain the return type of a function type\r
@@ -1508,7 +1598,27 @@ type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => i
 /**\r
  * Obtain the return type of a constructor function type\r
  */\r
-type InstanceType<T extends new (...args: any) => any> = T extends new (...args: any) => infer R ? R : any;\r
+type InstanceType<T extends abstract new (...args: any) => any> = T extends abstract new (...args: any) => infer R ? R : any;\r
+\r
+/**\r
+ * Convert string literal type to uppercase\r
+ */\r
+type Uppercase<S extends string> = intrinsic;\r
+\r
+/**\r
+ * Convert string literal type to lowercase\r
+ */\r
+type Lowercase<S extends string> = intrinsic;\r
+\r
+/**\r
+ * Convert first character of string literal type to uppercase\r
+ */\r
+type Capitalize<S extends string> = intrinsic;\r
+\r
+/**\r
+ * Convert first character of string literal type to lowercase\r
+ */\r
+type Uncapitalize<S extends string> = intrinsic;\r
 \r
 /**\r
  * Marker for contextual 'this' type\r
@@ -1694,6 +1804,7 @@ interface DataView {
 }\r
 \r
 interface DataViewConstructor {\r
+    readonly prototype: DataView;\r
     new(buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView;\r
 }\r
 declare var DataView: DataViewConstructor;\r
@@ -1736,16 +1847,16 @@ interface Int8Array {
 \r
     /**\r
      * Determines whether all the members of an array satisfy the specified test.\r
-     * @param callbackfn A function that accepts up to three arguments. The every method calls\r
-     * the callbackfn function for each element in the array until the callbackfn returns a value\r
+     * @param predicate A function that accepts up to three arguments. The every method calls\r
+     * the predicate function for each element in the array until the predicate returns a value\r
      * which is coercible to the Boolean value false, or until the end of the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    every(callbackfn: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;\r
+    every(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;\r
 \r
     /**\r
-     * Returns the this object after filling the section identified by start and end with value\r
+     * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\r
      * @param value value to fill array section with\r
      * @param start index to start filling the array at. If start is negative, it is treated as\r
      * length+start where length is the length of the array.\r
@@ -1756,12 +1867,12 @@ interface Int8Array {
 \r
     /**\r
      * Returns the elements of an array that meet the condition specified in a callback function.\r
-     * @param callbackfn A function that accepts up to three arguments. The filter method calls\r
-     * the callbackfn function one time for each element in the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param predicate A function that accepts up to three arguments. The filter method calls\r
+     * the predicate function one time for each element in the array.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    filter(callbackfn: (value: number, index: number, array: Int8Array) => any, thisArg?: any): Int8Array;\r
+    filter(predicate: (value: number, index: number, array: Int8Array) => any, thisArg?: any): Int8Array;\r
 \r
     /**\r
      * Returns the value of the first element in the array where predicate is true, and undefined\r
@@ -1903,19 +2014,19 @@ interface Int8Array {
 \r
     /**\r
      * Determines whether the specified callback function returns true for any element of an array.\r
-     * @param callbackfn A function that accepts up to three arguments. The some method calls\r
-     * the callbackfn function for each element in the array until the callbackfn returns a value\r
+     * @param predicate A function that accepts up to three arguments. The some method calls\r
+     * the predicate function for each element in the array until the predicate returns a value\r
      * which is coercible to the Boolean value true, or until the end of the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    some(callbackfn: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;\r
+    some(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;\r
 \r
     /**\r
      * Sorts an array.\r
      * @param compareFn Function used to determine the order of the elements. It is expected to return\r
      * a negative value if first argument is less than second argument, zero if they're equal and a positive\r
-     * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\r
+     * value otherwise. If omitted, the elements are sorted in ascending order.\r
      * ```ts\r
      * [11,2,22,1].sort((a, b) => a - b)\r
      * ```\r
@@ -1948,8 +2059,8 @@ interface Int8Array {
 interface Int8ArrayConstructor {\r
     readonly prototype: Int8Array;\r
     new(length: number): Int8Array;\r
-    new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Int8Array;\r
-    new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Int8Array;\r
+    new(array: ArrayLike<number> | ArrayBufferLike): Int8Array;\r
+    new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array;\r
 \r
     /**\r
      * The size in bytes of each element in the array.\r
@@ -2018,16 +2129,16 @@ interface Uint8Array {
 \r
     /**\r
      * Determines whether all the members of an array satisfy the specified test.\r
-     * @param callbackfn A function that accepts up to three arguments. The every method calls\r
-     * the callbackfn function for each element in the array until the callbackfn returns a value\r
+     * @param predicate A function that accepts up to three arguments. The every method calls\r
+     * the predicate function for each element in the array until the predicate returns a value\r
      * which is coercible to the Boolean value false, or until the end of the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    every(callbackfn: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;\r
+    every(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;\r
 \r
     /**\r
-     * Returns the this object after filling the section identified by start and end with value\r
+     * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\r
      * @param value value to fill array section with\r
      * @param start index to start filling the array at. If start is negative, it is treated as\r
      * length+start where length is the length of the array.\r
@@ -2038,12 +2149,12 @@ interface Uint8Array {
 \r
     /**\r
      * Returns the elements of an array that meet the condition specified in a callback function.\r
-     * @param callbackfn A function that accepts up to three arguments. The filter method calls\r
-     * the callbackfn function one time for each element in the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param predicate A function that accepts up to three arguments. The filter method calls\r
+     * the predicate function one time for each element in the array.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    filter(callbackfn: (value: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array;\r
+    filter(predicate: (value: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array;\r
 \r
     /**\r
      * Returns the value of the first element in the array where predicate is true, and undefined\r
@@ -2185,19 +2296,19 @@ interface Uint8Array {
 \r
     /**\r
      * Determines whether the specified callback function returns true for any element of an array.\r
-     * @param callbackfn A function that accepts up to three arguments. The some method calls\r
-     * the callbackfn function for each element in the array until the callbackfn returns a value\r
+     * @param predicate A function that accepts up to three arguments. The some method calls\r
+     * the predicate function for each element in the array until the predicate returns a value\r
      * which is coercible to the Boolean value true, or until the end of the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    some(callbackfn: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;\r
+    some(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;\r
 \r
     /**\r
      * Sorts an array.\r
      * @param compareFn Function used to determine the order of the elements. It is expected to return\r
      * a negative value if first argument is less than second argument, zero if they're equal and a positive\r
-     * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\r
+     * value otherwise. If omitted, the elements are sorted in ascending order.\r
      * ```ts\r
      * [11,2,22,1].sort((a, b) => a - b)\r
      * ```\r
@@ -2231,8 +2342,8 @@ interface Uint8Array {
 interface Uint8ArrayConstructor {\r
     readonly prototype: Uint8Array;\r
     new(length: number): Uint8Array;\r
-    new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Uint8Array;\r
-    new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Uint8Array;\r
+    new(array: ArrayLike<number> | ArrayBufferLike): Uint8Array;\r
+    new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array;\r
 \r
     /**\r
      * The size in bytes of each element in the array.\r
@@ -2300,16 +2411,16 @@ interface Uint8ClampedArray {
 \r
     /**\r
      * Determines whether all the members of an array satisfy the specified test.\r
-     * @param callbackfn A function that accepts up to three arguments. The every method calls\r
-     * the callbackfn function for each element in the array until the callbackfn returns a value\r
+     * @param predicate A function that accepts up to three arguments. The every method calls\r
+     * the predicate function for each element in the array until the predicate returns a value\r
      * which is coercible to the Boolean value false, or until the end of the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    every(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;\r
+    every(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;\r
 \r
     /**\r
-     * Returns the this object after filling the section identified by start and end with value\r
+     * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\r
      * @param value value to fill array section with\r
      * @param start index to start filling the array at. If start is negative, it is treated as\r
      * length+start where length is the length of the array.\r
@@ -2320,12 +2431,12 @@ interface Uint8ClampedArray {
 \r
     /**\r
      * Returns the elements of an array that meet the condition specified in a callback function.\r
-     * @param callbackfn A function that accepts up to three arguments. The filter method calls\r
-     * the callbackfn function one time for each element in the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param predicate A function that accepts up to three arguments. The filter method calls\r
+     * the predicate function one time for each element in the array.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    filter(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;\r
+    filter(predicate: (value: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;\r
 \r
     /**\r
      * Returns the value of the first element in the array where predicate is true, and undefined\r
@@ -2467,19 +2578,19 @@ interface Uint8ClampedArray {
 \r
     /**\r
      * Determines whether the specified callback function returns true for any element of an array.\r
-     * @param callbackfn A function that accepts up to three arguments. The some method calls\r
-     * the callbackfn function for each element in the array until the callbackfn returns a value\r
+     * @param predicate A function that accepts up to three arguments. The some method calls\r
+     * the predicate function for each element in the array until the predicate returns a value\r
      * which is coercible to the Boolean value true, or until the end of the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    some(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;\r
+    some(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;\r
 \r
     /**\r
      * Sorts an array.\r
      * @param compareFn Function used to determine the order of the elements. It is expected to return\r
      * a negative value if first argument is less than second argument, zero if they're equal and a positive\r
-     * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\r
+     * value otherwise. If omitted, the elements are sorted in ascending order.\r
      * ```ts\r
      * [11,2,22,1].sort((a, b) => a - b)\r
      * ```\r
@@ -2513,8 +2624,8 @@ interface Uint8ClampedArray {
 interface Uint8ClampedArrayConstructor {\r
     readonly prototype: Uint8ClampedArray;\r
     new(length: number): Uint8ClampedArray;\r
-    new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray;\r
-    new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Uint8ClampedArray;\r
+    new(array: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray;\r
+    new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8ClampedArray;\r
 \r
     /**\r
      * The size in bytes of each element in the array.\r
@@ -2581,16 +2692,16 @@ interface Int16Array {
 \r
     /**\r
      * Determines whether all the members of an array satisfy the specified test.\r
-     * @param callbackfn A function that accepts up to three arguments. The every method calls\r
-     * the callbackfn function for each element in the array until the callbackfn returns a value\r
+     * @param predicate A function that accepts up to three arguments. The every method calls\r
+     * the predicate function for each element in the array until the predicate returns a value\r
      * which is coercible to the Boolean value false, or until the end of the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    every(callbackfn: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;\r
+    every(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;\r
 \r
     /**\r
-     * Returns the this object after filling the section identified by start and end with value\r
+     * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\r
      * @param value value to fill array section with\r
      * @param start index to start filling the array at. If start is negative, it is treated as\r
      * length+start where length is the length of the array.\r
@@ -2601,12 +2712,12 @@ interface Int16Array {
 \r
     /**\r
      * Returns the elements of an array that meet the condition specified in a callback function.\r
-     * @param callbackfn A function that accepts up to three arguments. The filter method calls\r
-     * the callbackfn function one time for each element in the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param predicate A function that accepts up to three arguments. The filter method calls\r
+     * the predicate function one time for each element in the array.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    filter(callbackfn: (value: number, index: number, array: Int16Array) => any, thisArg?: any): Int16Array;\r
+    filter(predicate: (value: number, index: number, array: Int16Array) => any, thisArg?: any): Int16Array;\r
 \r
     /**\r
      * Returns the value of the first element in the array where predicate is true, and undefined\r
@@ -2747,19 +2858,19 @@ interface Int16Array {
 \r
     /**\r
      * Determines whether the specified callback function returns true for any element of an array.\r
-     * @param callbackfn A function that accepts up to three arguments. The some method calls\r
-     * the callbackfn function for each element in the array until the callbackfn returns a value\r
+     * @param predicate A function that accepts up to three arguments. The some method calls\r
+     * the predicate function for each element in the array until the predicate returns a value\r
      * which is coercible to the Boolean value true, or until the end of the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    some(callbackfn: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;\r
+    some(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;\r
 \r
     /**\r
      * Sorts an array.\r
      * @param compareFn Function used to determine the order of the elements. It is expected to return\r
      * a negative value if first argument is less than second argument, zero if they're equal and a positive\r
-     * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\r
+     * value otherwise. If omitted, the elements are sorted in ascending order.\r
      * ```ts\r
      * [11,2,22,1].sort((a, b) => a - b)\r
      * ```\r
@@ -2793,8 +2904,8 @@ interface Int16Array {
 interface Int16ArrayConstructor {\r
     readonly prototype: Int16Array;\r
     new(length: number): Int16Array;\r
-    new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Int16Array;\r
-    new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Int16Array;\r
+    new(array: ArrayLike<number> | ArrayBufferLike): Int16Array;\r
+    new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array;\r
 \r
     /**\r
      * The size in bytes of each element in the array.\r
@@ -2863,16 +2974,16 @@ interface Uint16Array {
 \r
     /**\r
      * Determines whether all the members of an array satisfy the specified test.\r
-     * @param callbackfn A function that accepts up to three arguments. The every method calls\r
-     * the callbackfn function for each element in the array until the callbackfn returns a value\r
+     * @param predicate A function that accepts up to three arguments. The every method calls\r
+     * the predicate function for each element in the array until the predicate returns a value\r
      * which is coercible to the Boolean value false, or until the end of the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    every(callbackfn: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;\r
+    every(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;\r
 \r
     /**\r
-     * Returns the this object after filling the section identified by start and end with value\r
+     * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\r
      * @param value value to fill array section with\r
      * @param start index to start filling the array at. If start is negative, it is treated as\r
      * length+start where length is the length of the array.\r
@@ -2883,12 +2994,12 @@ interface Uint16Array {
 \r
     /**\r
      * Returns the elements of an array that meet the condition specified in a callback function.\r
-     * @param callbackfn A function that accepts up to three arguments. The filter method calls\r
-     * the callbackfn function one time for each element in the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param predicate A function that accepts up to three arguments. The filter method calls\r
+     * the predicate function one time for each element in the array.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    filter(callbackfn: (value: number, index: number, array: Uint16Array) => any, thisArg?: any): Uint16Array;\r
+    filter(predicate: (value: number, index: number, array: Uint16Array) => any, thisArg?: any): Uint16Array;\r
 \r
     /**\r
      * Returns the value of the first element in the array where predicate is true, and undefined\r
@@ -3030,19 +3141,19 @@ interface Uint16Array {
 \r
     /**\r
      * Determines whether the specified callback function returns true for any element of an array.\r
-     * @param callbackfn A function that accepts up to three arguments. The some method calls\r
-     * the callbackfn function for each element in the array until the callbackfn returns a value\r
+     * @param predicate A function that accepts up to three arguments. The some method calls\r
+     * the predicate function for each element in the array until the predicate returns a value\r
      * which is coercible to the Boolean value true, or until the end of the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    some(callbackfn: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;\r
+    some(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;\r
 \r
     /**\r
      * Sorts an array.\r
      * @param compareFn Function used to determine the order of the elements. It is expected to return\r
      * a negative value if first argument is less than second argument, zero if they're equal and a positive\r
-     * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\r
+     * value otherwise. If omitted, the elements are sorted in ascending order.\r
      * ```ts\r
      * [11,2,22,1].sort((a, b) => a - b)\r
      * ```\r
@@ -3076,8 +3187,8 @@ interface Uint16Array {
 interface Uint16ArrayConstructor {\r
     readonly prototype: Uint16Array;\r
     new(length: number): Uint16Array;\r
-    new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Uint16Array;\r
-    new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Uint16Array;\r
+    new(array: ArrayLike<number> | ArrayBufferLike): Uint16Array;\r
+    new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint16Array;\r
 \r
     /**\r
      * The size in bytes of each element in the array.\r
@@ -3145,16 +3256,16 @@ interface Int32Array {
 \r
     /**\r
      * Determines whether all the members of an array satisfy the specified test.\r
-     * @param callbackfn A function that accepts up to three arguments. The every method calls\r
-     * the callbackfn function for each element in the array until the callbackfn returns a value\r
+     * @param predicate A function that accepts up to three arguments. The every method calls\r
+     * the predicate function for each element in the array until the predicate returns a value\r
      * which is coercible to the Boolean value false, or until the end of the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    every(callbackfn: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;\r
+    every(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;\r
 \r
     /**\r
-     * Returns the this object after filling the section identified by start and end with value\r
+     * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\r
      * @param value value to fill array section with\r
      * @param start index to start filling the array at. If start is negative, it is treated as\r
      * length+start where length is the length of the array.\r
@@ -3165,12 +3276,12 @@ interface Int32Array {
 \r
     /**\r
      * Returns the elements of an array that meet the condition specified in a callback function.\r
-     * @param callbackfn A function that accepts up to three arguments. The filter method calls\r
-     * the callbackfn function one time for each element in the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param predicate A function that accepts up to three arguments. The filter method calls\r
+     * the predicate function one time for each element in the array.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    filter(callbackfn: (value: number, index: number, array: Int32Array) => any, thisArg?: any): Int32Array;\r
+    filter(predicate: (value: number, index: number, array: Int32Array) => any, thisArg?: any): Int32Array;\r
 \r
     /**\r
      * Returns the value of the first element in the array where predicate is true, and undefined\r
@@ -3312,19 +3423,19 @@ interface Int32Array {
 \r
     /**\r
      * Determines whether the specified callback function returns true for any element of an array.\r
-     * @param callbackfn A function that accepts up to three arguments. The some method calls\r
-     * the callbackfn function for each element in the array until the callbackfn returns a value\r
+     * @param predicate A function that accepts up to three arguments. The some method calls\r
+     * the predicate function for each element in the array until the predicate returns a value\r
      * which is coercible to the Boolean value true, or until the end of the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    some(callbackfn: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;\r
+    some(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;\r
 \r
     /**\r
      * Sorts an array.\r
      * @param compareFn Function used to determine the order of the elements. It is expected to return\r
      * a negative value if first argument is less than second argument, zero if they're equal and a positive\r
-     * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\r
+     * value otherwise. If omitted, the elements are sorted in ascending order.\r
      * ```ts\r
      * [11,2,22,1].sort((a, b) => a - b)\r
      * ```\r
@@ -3358,8 +3469,8 @@ interface Int32Array {
 interface Int32ArrayConstructor {\r
     readonly prototype: Int32Array;\r
     new(length: number): Int32Array;\r
-    new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Int32Array;\r
-    new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Int32Array;\r
+    new(array: ArrayLike<number> | ArrayBufferLike): Int32Array;\r
+    new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int32Array;\r
 \r
     /**\r
      * The size in bytes of each element in the array.\r
@@ -3427,16 +3538,16 @@ interface Uint32Array {
 \r
     /**\r
      * Determines whether all the members of an array satisfy the specified test.\r
-     * @param callbackfn A function that accepts up to three arguments. The every method calls\r
-     * the callbackfn function for each element in the array until the callbackfn returns a value\r
+     * @param predicate A function that accepts up to three arguments. The every method calls\r
+     * the predicate function for each element in the array until the predicate returns a value\r
      * which is coercible to the Boolean value false, or until the end of the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    every(callbackfn: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;\r
+    every(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;\r
 \r
     /**\r
-     * Returns the this object after filling the section identified by start and end with value\r
+     * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\r
      * @param value value to fill array section with\r
      * @param start index to start filling the array at. If start is negative, it is treated as\r
      * length+start where length is the length of the array.\r
@@ -3447,12 +3558,12 @@ interface Uint32Array {
 \r
     /**\r
      * Returns the elements of an array that meet the condition specified in a callback function.\r
-     * @param callbackfn A function that accepts up to three arguments. The filter method calls\r
-     * the callbackfn function one time for each element in the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param predicate A function that accepts up to three arguments. The filter method calls\r
+     * the predicate function one time for each element in the array.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    filter(callbackfn: (value: number, index: number, array: Uint32Array) => any, thisArg?: any): Uint32Array;\r
+    filter(predicate: (value: number, index: number, array: Uint32Array) => any, thisArg?: any): Uint32Array;\r
 \r
     /**\r
      * Returns the value of the first element in the array where predicate is true, and undefined\r
@@ -3593,19 +3704,19 @@ interface Uint32Array {
 \r
     /**\r
      * Determines whether the specified callback function returns true for any element of an array.\r
-     * @param callbackfn A function that accepts up to three arguments. The some method calls\r
-     * the callbackfn function for each element in the array until the callbackfn returns a value\r
+     * @param predicate A function that accepts up to three arguments. The some method calls\r
+     * the predicate function for each element in the array until the predicate returns a value\r
      * which is coercible to the Boolean value true, or until the end of the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    some(callbackfn: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;\r
+    some(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;\r
 \r
     /**\r
      * Sorts an array.\r
      * @param compareFn Function used to determine the order of the elements. It is expected to return\r
      * a negative value if first argument is less than second argument, zero if they're equal and a positive\r
-     * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\r
+     * value otherwise. If omitted, the elements are sorted in ascending order.\r
      * ```ts\r
      * [11,2,22,1].sort((a, b) => a - b)\r
      * ```\r
@@ -3639,8 +3750,8 @@ interface Uint32Array {
 interface Uint32ArrayConstructor {\r
     readonly prototype: Uint32Array;\r
     new(length: number): Uint32Array;\r
-    new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Uint32Array;\r
-    new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Uint32Array;\r
+    new(array: ArrayLike<number> | ArrayBufferLike): Uint32Array;\r
+    new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint32Array;\r
 \r
     /**\r
      * The size in bytes of each element in the array.\r
@@ -3708,16 +3819,16 @@ interface Float32Array {
 \r
     /**\r
      * Determines whether all the members of an array satisfy the specified test.\r
-     * @param callbackfn A function that accepts up to three arguments. The every method calls\r
-     * the callbackfn function for each element in the array until the callbackfn returns a value\r
+     * @param predicate A function that accepts up to three arguments. The every method calls\r
+     * the predicate function for each element in the array until the predicate returns a value\r
      * which is coercible to the Boolean value false, or until the end of the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    every(callbackfn: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;\r
+    every(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;\r
 \r
     /**\r
-     * Returns the this object after filling the section identified by start and end with value\r
+     * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\r
      * @param value value to fill array section with\r
      * @param start index to start filling the array at. If start is negative, it is treated as\r
      * length+start where length is the length of the array.\r
@@ -3728,12 +3839,12 @@ interface Float32Array {
 \r
     /**\r
      * Returns the elements of an array that meet the condition specified in a callback function.\r
-     * @param callbackfn A function that accepts up to three arguments. The filter method calls\r
-     * the callbackfn function one time for each element in the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param predicate A function that accepts up to three arguments. The filter method calls\r
+     * the predicate function one time for each element in the array.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    filter(callbackfn: (value: number, index: number, array: Float32Array) => any, thisArg?: any): Float32Array;\r
+    filter(predicate: (value: number, index: number, array: Float32Array) => any, thisArg?: any): Float32Array;\r
 \r
     /**\r
      * Returns the value of the first element in the array where predicate is true, and undefined\r
@@ -3875,19 +3986,19 @@ interface Float32Array {
 \r
     /**\r
      * Determines whether the specified callback function returns true for any element of an array.\r
-     * @param callbackfn A function that accepts up to three arguments. The some method calls\r
-     * the callbackfn function for each element in the array until the callbackfn returns a value\r
+     * @param predicate A function that accepts up to three arguments. The some method calls\r
+     * the predicate function for each element in the array until the predicate returns a value\r
      * which is coercible to the Boolean value true, or until the end of the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    some(callbackfn: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;\r
+    some(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;\r
 \r
     /**\r
      * Sorts an array.\r
      * @param compareFn Function used to determine the order of the elements. It is expected to return\r
      * a negative value if first argument is less than second argument, zero if they're equal and a positive\r
-     * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\r
+     * value otherwise. If omitted, the elements are sorted in ascending order.\r
      * ```ts\r
      * [11,2,22,1].sort((a, b) => a - b)\r
      * ```\r
@@ -3921,8 +4032,8 @@ interface Float32Array {
 interface Float32ArrayConstructor {\r
     readonly prototype: Float32Array;\r
     new(length: number): Float32Array;\r
-    new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Float32Array;\r
-    new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Float32Array;\r
+    new(array: ArrayLike<number> | ArrayBufferLike): Float32Array;\r
+    new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array;\r
 \r
     /**\r
      * The size in bytes of each element in the array.\r
@@ -3991,16 +4102,16 @@ interface Float64Array {
 \r
     /**\r
      * Determines whether all the members of an array satisfy the specified test.\r
-     * @param callbackfn A function that accepts up to three arguments. The every method calls\r
-     * the callbackfn function for each element in the array until the callbackfn returns a value\r
+     * @param predicate A function that accepts up to three arguments. The every method calls\r
+     * the predicate function for each element in the array until the predicate returns a value\r
      * which is coercible to the Boolean value false, or until the end of the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    every(callbackfn: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;\r
+    every(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;\r
 \r
     /**\r
-     * Returns the this object after filling the section identified by start and end with value\r
+     * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\r
      * @param value value to fill array section with\r
      * @param start index to start filling the array at. If start is negative, it is treated as\r
      * length+start where length is the length of the array.\r
@@ -4011,12 +4122,12 @@ interface Float64Array {
 \r
     /**\r
      * Returns the elements of an array that meet the condition specified in a callback function.\r
-     * @param callbackfn A function that accepts up to three arguments. The filter method calls\r
-     * the callbackfn function one time for each element in the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param predicate A function that accepts up to three arguments. The filter method calls\r
+     * the predicate function one time for each element in the array.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    filter(callbackfn: (value: number, index: number, array: Float64Array) => any, thisArg?: any): Float64Array;\r
+    filter(predicate: (value: number, index: number, array: Float64Array) => any, thisArg?: any): Float64Array;\r
 \r
     /**\r
      * Returns the value of the first element in the array where predicate is true, and undefined\r
@@ -4158,19 +4269,19 @@ interface Float64Array {
 \r
     /**\r
      * Determines whether the specified callback function returns true for any element of an array.\r
-     * @param callbackfn A function that accepts up to three arguments. The some method calls\r
-     * the callbackfn function for each element in the array until the callbackfn returns a value\r
+     * @param predicate A function that accepts up to three arguments. The some method calls\r
+     * the predicate function for each element in the array until the predicate returns a value\r
      * which is coercible to the Boolean value true, or until the end of the array.\r
-     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\r
+     * @param thisArg An object to which the this keyword can refer in the predicate function.\r
      * If thisArg is omitted, undefined is used as the this value.\r
      */\r
-    some(callbackfn: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;\r
+    some(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;\r
 \r
     /**\r
      * Sorts an array.\r
      * @param compareFn Function used to determine the order of the elements. It is expected to return\r
      * a negative value if first argument is less than second argument, zero if they're equal and a positive\r
-     * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\r
+     * value otherwise. If omitted, the elements are sorted in ascending order.\r
      * ```ts\r
      * [11,2,22,1].sort((a, b) => a - b)\r
      * ```\r
@@ -4195,8 +4306,8 @@ interface Float64Array {
 interface Float64ArrayConstructor {\r
     readonly prototype: Float64Array;\r
     new(length: number): Float64Array;\r
-    new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Float64Array;\r
-    new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Float64Array;\r
+    new(array: ArrayLike<number> | ArrayBufferLike): Float64Array;\r
+    new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array;\r
 \r
     /**\r
      * The size in bytes of each element in the array.\r
@@ -4232,12 +4343,12 @@ declare var Float64Array: Float64ArrayConstructor;
 \r
 declare namespace Intl {\r
     interface CollatorOptions {\r
-        usage?: string;\r
-        localeMatcher?: string;\r
-        numeric?: boolean;\r
-        caseFirst?: string;\r
-        sensitivity?: string;\r
-        ignorePunctuation?: boolean;\r
+        usage?: string | undefined;\r
+        localeMatcher?: string | undefined;\r
+        numeric?: boolean | undefined;\r
+        caseFirst?: string | undefined;\r
+        sensitivity?: string | undefined;\r
+        ignorePunctuation?: boolean | undefined;\r
     }\r
 \r
     interface ResolvedCollatorOptions {\r
@@ -4261,16 +4372,17 @@ declare namespace Intl {
     };\r
 \r
     interface NumberFormatOptions {\r
-        localeMatcher?: string;\r
-        style?: string;\r
-        currency?: string;\r
-        currencyDisplay?: string;\r
-        useGrouping?: boolean;\r
-        minimumIntegerDigits?: number;\r
-        minimumFractionDigits?: number;\r
-        maximumFractionDigits?: number;\r
-        minimumSignificantDigits?: number;\r
-        maximumSignificantDigits?: number;\r
+        localeMatcher?: string | undefined;\r
+        style?: string | undefined;\r
+        currency?: string | undefined;\r
+        currencyDisplay?: string | undefined;\r
+        currencySign?: string | undefined;\r
+        useGrouping?: boolean | undefined;\r
+        minimumIntegerDigits?: number | undefined;\r
+        minimumFractionDigits?: number | undefined;\r
+        maximumFractionDigits?: number | undefined;\r
+        minimumSignificantDigits?: number | undefined;\r
+        maximumSignificantDigits?: number | undefined;\r
     }\r
 \r
     interface ResolvedNumberFormatOptions {\r
@@ -4298,19 +4410,19 @@ declare namespace Intl {
     };\r
 \r
     interface DateTimeFormatOptions {\r
-        localeMatcher?: string;\r
-        weekday?: string;\r
-        era?: string;\r
-        year?: string;\r
-        month?: string;\r
-        day?: string;\r
-        hour?: string;\r
-        minute?: string;\r
-        second?: string;\r
-        timeZoneName?: string;\r
-        formatMatcher?: string;\r
-        hour12?: boolean;\r
-        timeZone?: string;\r
+        localeMatcher?: "best fit" | "lookup" | undefined;\r
+        weekday?: "long" | "short" | "narrow" | undefined;\r
+        era?: "long" | "short" | "narrow" | undefined;\r
+        year?: "numeric" | "2-digit" | undefined;\r
+        month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | undefined;\r
+        day?: "numeric" | "2-digit" | undefined;\r
+        hour?: "numeric" | "2-digit" | undefined;\r
+        minute?: "numeric" | "2-digit" | undefined;\r
+        second?: "numeric" | "2-digit" | undefined;\r
+        timeZoneName?: "long" | "short" | undefined;\r
+        formatMatcher?: "best fit" | "basic" | undefined;\r
+        hour12?: boolean | undefined;\r
+        timeZone?: string | undefined;\r
     }\r
 \r
     interface ResolvedDateTimeFormatOptions {\r