Skip to content

Commit cae5be7

Browse files
committed
update locales arg for Number
1 parent 9144d5d commit cae5be7

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

src/compiler/commandLineParser.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ namespace ts {
7474
["es2020.string", "lib.es2020.string.d.ts"],
7575
["es2020.symbol.wellknown", "lib.es2020.symbol.wellknown.d.ts"],
7676
["es2020.intl", "lib.es2020.intl.d.ts"],
77+
["es2020.number", "lib.es2020.number.d.ts"],
7778
["es2021.promise", "lib.es2021.promise.d.ts"],
7879
["es2021.string", "lib.es2021.string.d.ts"],
7980
["es2021.weakref", "lib.es2021.weakref.d.ts"],

src/lib/es2020.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/// <reference lib="es2019" />
22
/// <reference lib="es2020.bigint" />
33
/// <reference lib="es2020.date" />
4+
/// <reference lib="es2020.number" />
45
/// <reference lib="es2020.promise" />
56
/// <reference lib="es2020.sharedmemory" />
67
/// <reference lib="es2020.string" />

src/lib/es2020.number.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/// <reference lib="es2020.intl" />
2+
3+
interface Number {
4+
/**
5+
* Converts a number to a string by using the current or specified locale.
6+
* @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects 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.
7+
* @param options An object that contains one or more properties that specify comparison options.
8+
*/
9+
toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
10+
}

src/lib/libs.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"es2020.string",
5151
"es2020.symbol.wellknown",
5252
"es2020.intl",
53+
"es2020.number",
5354
"es2021.string",
5455
"es2021.promise",
5556
"es2021.weakref",

0 commit comments

Comments
 (0)