Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-html / node_modules / typescript / lib / lib.es2020.bigint.d.ts
index 6578d50ddf233b72930f479ed6d9ec49e4b9a8e6..5811f4671d93a62b44335c91aea8af5e57f5030e 100644 (file)
@@ -18,6 +18,92 @@ and limitations under the License.
 /// <reference no-default-lib="true"/>\r
 
 
+interface BigIntToLocaleStringOptions {\r
+    /**\r
+     * The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}.\r
+     */\r
+    localeMatcher?: string;\r
+    /**\r
+     * The formatting style to use , the default is "decimal".\r
+     */\r
+    style?: string;\r
+\r
+    numberingSystem?: string;\r
+    /**\r
+     * The unit to use in unit formatting, Possible values are core unit identifiers, defined in UTS #35, Part 2, Section 6. A subset of units from the full list was selected for use in ECMAScript. Pairs of simple units can be concatenated with "-per-" to make a compound unit. There is no default value; if the style is "unit", the unit property must be provided.\r
+     */\r
+    unit?: string;\r
+\r
+    /**\r
+     * The unit formatting style to use in unit formatting, the defaults is "short".\r
+     */\r
+    unitDisplay?: string;\r
+\r
+    /**\r
+     * The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar, "EUR" for the euro, or "CNY" for the Chinese RMB — see the Current currency & funds code list. There is no default value; if the style is "currency", the currency property must be provided. It is only used when [[Style]] has the value "currency".\r
+     */\r
+    currency?: string;\r
+\r
+    /**\r
+     * How to display the currency in currency formatting. It is only used when [[Style]] has the value "currency". The default is "symbol".\r
+     *\r
+     * "symbol" to use a localized currency symbol such as €,\r
+     *\r
+     * "code" to use the ISO currency code,\r
+     *\r
+     * "name" to use a localized currency name such as "dollar"\r
+     */\r
+    currencyDisplay?: string;\r
+\r
+    /**\r
+     * Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. The default is true.\r
+     */\r
+    useGrouping?: boolean;\r
+\r
+    /**\r
+     * The minimum number of integer digits to use. Possible values are from 1 to 21; the default is 1.\r
+     */\r
+    minimumIntegerDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;\r
+\r
+    /**\r
+     * The minimum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information).\r
+     */\r
+    minimumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;\r
+\r
+    /**\r
+     * The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3; the default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information); the default for percent formatting is the larger of minimumFractionDigits and 0.\r
+     */\r
+    maximumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;\r
+\r
+    /**\r
+     * The minimum number of significant digits to use. Possible values are from 1 to 21; the default is 1.\r
+     */\r
+    minimumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;\r
+\r
+    /**\r
+     * The maximum number of significant digits to use. Possible values are from 1 to 21; the default is 21.\r
+     */\r
+    maximumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;\r
+\r
+    /**\r
+     * The formatting that should be displayed for the number, the defaults is "standard"\r
+     *\r
+     *     "standard" plain number formatting\r
+     *\r
+     *     "scientific" return the order-of-magnitude for formatted number.\r
+     *\r
+     *     "engineering" return the exponent of ten when divisible by three\r
+     *\r
+     *     "compact" string representing exponent, defaults is using the "short" form\r
+     */\r
+    notation?: string;\r
+\r
+    /**\r
+     * used only when notation is "compact"\r
+     */\r
+    compactDisplay?: string;\r
+}\r
+\r
 interface BigInt {\r
     /**\r
      * Returns a string representation of an object.\r
@@ -26,7 +112,7 @@ interface BigInt {
     toString(radix?: number): string;\r
 \r
     /** Returns a string representation appropriate to the host environment's current locale. */\r
-    toLocaleString(): string;\r
+    toLocaleString(locales?: string, options?: BigIntToLocaleStringOptions): string;\r
 \r
     /** Returns the primitive value of the specified object. */\r
     valueOf(): bigint;\r
@@ -89,13 +175,13 @@ interface BigInt64Array {
 \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 false,\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 false,\r
      * 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: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;\r
+    every(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;\r
 \r
     /**\r
      * Returns the this object after filling the section identified by start and end with value\r
@@ -109,12 +195,12 @@ interface BigInt64Array {
 \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: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array;\r
+    filter(predicate: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array;\r
 \r
     /**\r
      * Returns the value of the first element in the array where predicate is true, and undefined\r
@@ -260,13 +346,13 @@ interface BigInt64Array {
 \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 the\r
-     * callbackfn function for each element in the array until the callbackfn returns true, or until\r
+     * @param predicate A function that accepts up to three arguments. The some method calls the\r
+     * predicate function for each element in the array until the predicate returns true, or until\r
      * 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: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;\r
+    some(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;\r
 \r
     /**\r
      * Sorts the array.\r
@@ -361,13 +447,13 @@ interface BigUint64Array {
 \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 false,\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 false,\r
      * 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: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;\r
+    every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;\r
 \r
     /**\r
      * Returns the this object after filling the section identified by start and end with value\r
@@ -381,12 +467,12 @@ interface BigUint64Array {
 \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: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array;\r
+    filter(predicate: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array;\r
 \r
     /**\r
      * Returns the value of the first element in the array where predicate is true, and undefined\r
@@ -532,13 +618,13 @@ interface BigUint64Array {
 \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 the\r
-     * callbackfn function for each element in the array until the callbackfn returns true, or until\r
+     * @param predicate A function that accepts up to three arguments. The some method calls the\r
+     * predicate function for each element in the array until the predicate returns true, or until\r
      * 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: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;\r
+    some(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;\r
 \r
     /**\r
      * Sorts the array.\r
@@ -633,3 +719,10 @@ interface DataView {
      */\r
     setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void;\r
 }\r
+\r
+declare namespace Intl{\r
+    interface NumberFormat {\r
+        format(value: number | bigint): string;\r
+        resolvedOptions(): ResolvedNumberFormatOptions;\r
+    }\r
+}\r