Skip to content

fix(56513): Allow Intl locales to be readonly arrays #56621

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/es2016.intl.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ declare namespace Intl {
* @param locale A list of String values for which to get the canonical locale names
* @returns An array containing the canonical and validated locale names.
*/
function getCanonicalLocales(locale?: string | string[]): string[];
function getCanonicalLocales(locale?: string | readonly string[]): string[];
}
6 changes: 3 additions & 3 deletions src/lib/es2018.intl.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ declare namespace Intl {
}

interface PluralRulesConstructor {
new (locales?: string | string[], options?: PluralRulesOptions): PluralRules;
(locales?: string | string[], options?: PluralRulesOptions): PluralRules;
supportedLocalesOf(locales: string | string[], options?: { localeMatcher?: "lookup" | "best fit"; }): string[];
new (locales?: string | readonly string[], options?: PluralRulesOptions): PluralRules;
(locales?: string | readonly string[], options?: PluralRulesOptions): PluralRules;
supportedLocalesOf(locales: string | readonly string[], options?: { localeMatcher?: "lookup" | "best fit"; }): string[];
}

const PluralRules: PluralRulesConstructor;
Expand Down
12 changes: 6 additions & 6 deletions tests/baselines/reference/es2016IntlAPIs.types
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ console.log(Intl.getCanonicalLocales('EN-US'));
>console : Console
>log : (...data: any[]) => void
>Intl.getCanonicalLocales('EN-US') : string[]
>Intl.getCanonicalLocales : (locale?: string | string[]) => string[]
>Intl.getCanonicalLocales : (locale?: string | readonly string[]) => string[]
>Intl : typeof Intl
>getCanonicalLocales : (locale?: string | string[]) => string[]
>getCanonicalLocales : (locale?: string | readonly string[]) => string[]
>'EN-US' : "EN-US"

// Expected output: Array ["en-US"]
Expand All @@ -22,9 +22,9 @@ console.log(Intl.getCanonicalLocales(['EN-US', 'Fr']));
>console : Console
>log : (...data: any[]) => void
>Intl.getCanonicalLocales(['EN-US', 'Fr']) : string[]
>Intl.getCanonicalLocales : (locale?: string | string[]) => string[]
>Intl.getCanonicalLocales : (locale?: string | readonly string[]) => string[]
>Intl : typeof Intl
>getCanonicalLocales : (locale?: string | string[]) => string[]
>getCanonicalLocales : (locale?: string | readonly string[]) => string[]
>['EN-US', 'Fr'] : string[]
>'EN-US' : "EN-US"
>'Fr' : "Fr"
Expand All @@ -34,9 +34,9 @@ console.log(Intl.getCanonicalLocales(['EN-US', 'Fr']));
try {
Intl.getCanonicalLocales('EN_US');
>Intl.getCanonicalLocales('EN_US') : string[]
>Intl.getCanonicalLocales : (locale?: string | string[]) => string[]
>Intl.getCanonicalLocales : (locale?: string | readonly string[]) => string[]
>Intl : typeof Intl
>getCanonicalLocales : (locale?: string | string[]) => string[]
>getCanonicalLocales : (locale?: string | readonly string[]) => string[]
>'EN_US' : "EN_US"

} catch (err) {
Expand Down
4 changes: 2 additions & 2 deletions tests/baselines/reference/es2018IntlAPIs.types
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ console.log(Intl.PluralRules.supportedLocalesOf(locales, options).join(', '));
>Intl.PluralRules.supportedLocalesOf(locales, options).join(', ') : string
>Intl.PluralRules.supportedLocalesOf(locales, options).join : (separator?: string) => string
>Intl.PluralRules.supportedLocalesOf(locales, options) : string[]
>Intl.PluralRules.supportedLocalesOf : (locales: string | string[], options?: { localeMatcher?: "lookup" | "best fit"; }) => string[]
>Intl.PluralRules.supportedLocalesOf : (locales: string | readonly string[], options?: { localeMatcher?: "lookup" | "best fit"; }) => string[]
>Intl.PluralRules : Intl.PluralRulesConstructor
>Intl : typeof Intl
>PluralRules : Intl.PluralRulesConstructor
>supportedLocalesOf : (locales: string | string[], options?: { localeMatcher?: "lookup" | "best fit"; }) => string[]
>supportedLocalesOf : (locales: string | readonly string[], options?: { localeMatcher?: "lookup" | "best fit"; }) => string[]
>locales : string[]
>options : { readonly localeMatcher: "lookup"; }
>join : (separator?: string) => string
Expand Down
23 changes: 21 additions & 2 deletions tests/baselines/reference/localesObjectArgument.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const num = 1000;
const bigint = 123456789123456789n;
const str = "";

const readonlyLocales: Readonly<string[]> = ['de-DE', 'ja-JP'];

now.toLocaleString(enUS);
now.toLocaleDateString(enUS);
now.toLocaleTimeString(enUS);
Expand All @@ -32,28 +34,36 @@ str.localeCompare(str, [deDE, jaJP]);

new Intl.PluralRules(enUS);
new Intl.PluralRules([deDE, jaJP]);
new Intl.PluralRules(readonlyLocales);
Intl.PluralRules.supportedLocalesOf(enUS);
Intl.PluralRules.supportedLocalesOf([deDE, jaJP]);
Intl.PluralRules.supportedLocalesOf(readonlyLocales);

new Intl.RelativeTimeFormat(enUS);
new Intl.RelativeTimeFormat([deDE, jaJP]);
new Intl.RelativeTimeFormat(readonlyLocales);
Intl.RelativeTimeFormat.supportedLocalesOf(enUS);
Intl.RelativeTimeFormat.supportedLocalesOf([deDE, jaJP]);
Intl.RelativeTimeFormat.supportedLocalesOf(readonlyLocales);

new Intl.Collator(enUS);
new Intl.Collator([deDE, jaJP]);
new Intl.Collator(readonlyLocales);
Intl.Collator.supportedLocalesOf(enUS);
Intl.Collator.supportedLocalesOf([deDE, jaJP]);

new Intl.DateTimeFormat(enUS);
new Intl.DateTimeFormat([deDE, jaJP]);
new Intl.DateTimeFormat(readonlyLocales);
Intl.DateTimeFormat.supportedLocalesOf(enUS);
Intl.DateTimeFormat.supportedLocalesOf([deDE, jaJP]);
Intl.DateTimeFormat.supportedLocalesOf(readonlyLocales);

new Intl.NumberFormat(enUS);
new Intl.NumberFormat([deDE, jaJP]);
new Intl.NumberFormat(readonlyLocales);
Intl.NumberFormat.supportedLocalesOf(enUS);
Intl.NumberFormat.supportedLocalesOf([deDE, jaJP]);
Intl.NumberFormat.supportedLocalesOf(readonlyLocales);


//// [localesObjectArgument.js]
Expand All @@ -64,6 +74,7 @@ const now = new Date();
const num = 1000;
const bigint = 123456789123456789n;
const str = "";
const readonlyLocales = ['de-DE', 'ja-JP'];
now.toLocaleString(enUS);
now.toLocaleDateString(enUS);
now.toLocaleTimeString(enUS);
Expand All @@ -82,21 +93,29 @@ str.localeCompare(str, enUS);
str.localeCompare(str, [deDE, jaJP]);
new Intl.PluralRules(enUS);
new Intl.PluralRules([deDE, jaJP]);
new Intl.PluralRules(readonlyLocales);
Intl.PluralRules.supportedLocalesOf(enUS);
Intl.PluralRules.supportedLocalesOf([deDE, jaJP]);
Intl.PluralRules.supportedLocalesOf(readonlyLocales);
new Intl.RelativeTimeFormat(enUS);
new Intl.RelativeTimeFormat([deDE, jaJP]);
new Intl.RelativeTimeFormat(readonlyLocales);
Intl.RelativeTimeFormat.supportedLocalesOf(enUS);
Intl.RelativeTimeFormat.supportedLocalesOf([deDE, jaJP]);
Intl.RelativeTimeFormat.supportedLocalesOf(readonlyLocales);
new Intl.Collator(enUS);
new Intl.Collator([deDE, jaJP]);
new Intl.Collator(readonlyLocales);
Intl.Collator.supportedLocalesOf(enUS);
Intl.Collator.supportedLocalesOf([deDE, jaJP]);
new Intl.DateTimeFormat(enUS);
new Intl.DateTimeFormat([deDE, jaJP]);
new Intl.DateTimeFormat(readonlyLocales);
Intl.DateTimeFormat.supportedLocalesOf(enUS);
Intl.DateTimeFormat.supportedLocalesOf([deDE, jaJP]);
Intl.DateTimeFormat.supportedLocalesOf(readonlyLocales);
new Intl.NumberFormat(enUS);
new Intl.NumberFormat([deDE, jaJP]);
new Intl.NumberFormat(readonlyLocales);
Intl.NumberFormat.supportedLocalesOf(enUS);
Intl.NumberFormat.supportedLocalesOf([deDE, jaJP]);
Intl.NumberFormat.supportedLocalesOf(readonlyLocales);
63 changes: 60 additions & 3 deletions tests/baselines/reference/localesObjectArgument.symbols
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ const bigint = 123456789123456789n;
const str = "";
>str : Symbol(str, Decl(localesObjectArgument.ts, 7, 5))

const readonlyLocales: Readonly<string[]> = ['de-DE', 'ja-JP'];
>readonlyLocales : Symbol(readonlyLocales, Decl(localesObjectArgument.ts, 9, 5))
>Readonly : Symbol(Readonly, Decl(lib.es5.d.ts, --, --))

now.toLocaleString(enUS);
>now.toLocaleString : Symbol(Date.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2020.date.d.ts, --, --))
>now : Symbol(now, Decl(localesObjectArgument.ts, 4, 5))
Expand Down Expand Up @@ -151,6 +155,12 @@ new Intl.PluralRules([deDE, jaJP]);
>deDE : Symbol(deDE, Decl(localesObjectArgument.ts, 1, 5))
>jaJP : Symbol(jaJP, Decl(localesObjectArgument.ts, 2, 5))

new Intl.PluralRules(readonlyLocales);
>Intl.PluralRules : Symbol(Intl.PluralRules, Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2018.intl.d.ts, --, --))
>Intl : Symbol(Intl, Decl(lib.es5.d.ts, --, --), Decl(lib.es2016.intl.d.ts, --, --), Decl(lib.es2017.intl.d.ts, --, --), Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2019.intl.d.ts, --, --) ... and 2 more)
>PluralRules : Symbol(Intl.PluralRules, Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2018.intl.d.ts, --, --))
>readonlyLocales : Symbol(readonlyLocales, Decl(localesObjectArgument.ts, 9, 5))

Intl.PluralRules.supportedLocalesOf(enUS);
>Intl.PluralRules.supportedLocalesOf : Symbol(Intl.PluralRulesConstructor.supportedLocalesOf, Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2020.intl.d.ts, --, --))
>Intl.PluralRules : Symbol(Intl.PluralRules, Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2018.intl.d.ts, --, --))
Expand All @@ -168,6 +178,14 @@ Intl.PluralRules.supportedLocalesOf([deDE, jaJP]);
>deDE : Symbol(deDE, Decl(localesObjectArgument.ts, 1, 5))
>jaJP : Symbol(jaJP, Decl(localesObjectArgument.ts, 2, 5))

Intl.PluralRules.supportedLocalesOf(readonlyLocales);
>Intl.PluralRules.supportedLocalesOf : Symbol(Intl.PluralRulesConstructor.supportedLocalesOf, Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2020.intl.d.ts, --, --))
>Intl.PluralRules : Symbol(Intl.PluralRules, Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2018.intl.d.ts, --, --))
>Intl : Symbol(Intl, Decl(lib.es5.d.ts, --, --), Decl(lib.es2016.intl.d.ts, --, --), Decl(lib.es2017.intl.d.ts, --, --), Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2019.intl.d.ts, --, --) ... and 2 more)
>PluralRules : Symbol(Intl.PluralRules, Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2018.intl.d.ts, --, --))
>supportedLocalesOf : Symbol(Intl.PluralRulesConstructor.supportedLocalesOf, Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2020.intl.d.ts, --, --))
>readonlyLocales : Symbol(readonlyLocales, Decl(localesObjectArgument.ts, 9, 5))

new Intl.RelativeTimeFormat(enUS);
>Intl.RelativeTimeFormat : Symbol(Intl.RelativeTimeFormat, Decl(lib.es2020.intl.d.ts, --, --), Decl(lib.es2020.intl.d.ts, --, --))
>Intl : Symbol(Intl, Decl(lib.es5.d.ts, --, --), Decl(lib.es2016.intl.d.ts, --, --), Decl(lib.es2017.intl.d.ts, --, --), Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2019.intl.d.ts, --, --) ... and 2 more)
Expand All @@ -181,6 +199,12 @@ new Intl.RelativeTimeFormat([deDE, jaJP]);
>deDE : Symbol(deDE, Decl(localesObjectArgument.ts, 1, 5))
>jaJP : Symbol(jaJP, Decl(localesObjectArgument.ts, 2, 5))

new Intl.RelativeTimeFormat(readonlyLocales);
>Intl.RelativeTimeFormat : Symbol(Intl.RelativeTimeFormat, Decl(lib.es2020.intl.d.ts, --, --), Decl(lib.es2020.intl.d.ts, --, --))
>Intl : Symbol(Intl, Decl(lib.es5.d.ts, --, --), Decl(lib.es2016.intl.d.ts, --, --), Decl(lib.es2017.intl.d.ts, --, --), Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2019.intl.d.ts, --, --) ... and 2 more)
>RelativeTimeFormat : Symbol(Intl.RelativeTimeFormat, Decl(lib.es2020.intl.d.ts, --, --), Decl(lib.es2020.intl.d.ts, --, --))
>readonlyLocales : Symbol(readonlyLocales, Decl(localesObjectArgument.ts, 9, 5))

Intl.RelativeTimeFormat.supportedLocalesOf(enUS);
>Intl.RelativeTimeFormat.supportedLocalesOf : Symbol(supportedLocalesOf, Decl(lib.es2020.intl.d.ts, --, --))
>Intl.RelativeTimeFormat : Symbol(Intl.RelativeTimeFormat, Decl(lib.es2020.intl.d.ts, --, --), Decl(lib.es2020.intl.d.ts, --, --))
Expand All @@ -198,6 +222,14 @@ Intl.RelativeTimeFormat.supportedLocalesOf([deDE, jaJP]);
>deDE : Symbol(deDE, Decl(localesObjectArgument.ts, 1, 5))
>jaJP : Symbol(jaJP, Decl(localesObjectArgument.ts, 2, 5))

Intl.RelativeTimeFormat.supportedLocalesOf(readonlyLocales);
>Intl.RelativeTimeFormat.supportedLocalesOf : Symbol(supportedLocalesOf, Decl(lib.es2020.intl.d.ts, --, --))
>Intl.RelativeTimeFormat : Symbol(Intl.RelativeTimeFormat, Decl(lib.es2020.intl.d.ts, --, --), Decl(lib.es2020.intl.d.ts, --, --))
>Intl : Symbol(Intl, Decl(lib.es5.d.ts, --, --), Decl(lib.es2016.intl.d.ts, --, --), Decl(lib.es2017.intl.d.ts, --, --), Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2019.intl.d.ts, --, --) ... and 2 more)
>RelativeTimeFormat : Symbol(Intl.RelativeTimeFormat, Decl(lib.es2020.intl.d.ts, --, --), Decl(lib.es2020.intl.d.ts, --, --))
>supportedLocalesOf : Symbol(supportedLocalesOf, Decl(lib.es2020.intl.d.ts, --, --))
>readonlyLocales : Symbol(readonlyLocales, Decl(localesObjectArgument.ts, 9, 5))

new Intl.Collator(enUS);
>Intl.Collator : Symbol(Intl.Collator, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
>Intl : Symbol(Intl, Decl(lib.es5.d.ts, --, --), Decl(lib.es2016.intl.d.ts, --, --), Decl(lib.es2017.intl.d.ts, --, --), Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2019.intl.d.ts, --, --) ... and 2 more)
Expand All @@ -211,6 +243,12 @@ new Intl.Collator([deDE, jaJP]);
>deDE : Symbol(deDE, Decl(localesObjectArgument.ts, 1, 5))
>jaJP : Symbol(jaJP, Decl(localesObjectArgument.ts, 2, 5))

new Intl.Collator(readonlyLocales);
>Intl.Collator : Symbol(Intl.Collator, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
>Intl : Symbol(Intl, Decl(lib.es5.d.ts, --, --), Decl(lib.es2016.intl.d.ts, --, --), Decl(lib.es2017.intl.d.ts, --, --), Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2019.intl.d.ts, --, --) ... and 2 more)
>Collator : Symbol(Intl.Collator, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
>readonlyLocales : Symbol(readonlyLocales, Decl(localesObjectArgument.ts, 9, 5))

Intl.Collator.supportedLocalesOf(enUS);
>Intl.Collator.supportedLocalesOf : Symbol(Intl.CollatorConstructor.supportedLocalesOf, Decl(lib.es5.d.ts, --, --), Decl(lib.es2020.intl.d.ts, --, --))
>Intl.Collator : Symbol(Intl.Collator, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
Expand Down Expand Up @@ -241,6 +279,12 @@ new Intl.DateTimeFormat([deDE, jaJP]);
>deDE : Symbol(deDE, Decl(localesObjectArgument.ts, 1, 5))
>jaJP : Symbol(jaJP, Decl(localesObjectArgument.ts, 2, 5))

new Intl.DateTimeFormat(readonlyLocales);
>Intl.DateTimeFormat : Symbol(Intl.DateTimeFormat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2017.intl.d.ts, --, --))
>Intl : Symbol(Intl, Decl(lib.es5.d.ts, --, --), Decl(lib.es2016.intl.d.ts, --, --), Decl(lib.es2017.intl.d.ts, --, --), Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2019.intl.d.ts, --, --) ... and 2 more)
>DateTimeFormat : Symbol(Intl.DateTimeFormat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2017.intl.d.ts, --, --))
>readonlyLocales : Symbol(readonlyLocales, Decl(localesObjectArgument.ts, 9, 5))

Intl.DateTimeFormat.supportedLocalesOf(enUS);
>Intl.DateTimeFormat.supportedLocalesOf : Symbol(Intl.DateTimeFormatConstructor.supportedLocalesOf, Decl(lib.es5.d.ts, --, --), Decl(lib.es2020.intl.d.ts, --, --))
>Intl.DateTimeFormat : Symbol(Intl.DateTimeFormat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2017.intl.d.ts, --, --))
Expand All @@ -258,6 +302,14 @@ Intl.DateTimeFormat.supportedLocalesOf([deDE, jaJP]);
>deDE : Symbol(deDE, Decl(localesObjectArgument.ts, 1, 5))
>jaJP : Symbol(jaJP, Decl(localesObjectArgument.ts, 2, 5))

Intl.DateTimeFormat.supportedLocalesOf(readonlyLocales);
>Intl.DateTimeFormat.supportedLocalesOf : Symbol(Intl.DateTimeFormatConstructor.supportedLocalesOf, Decl(lib.es5.d.ts, --, --), Decl(lib.es2020.intl.d.ts, --, --))
>Intl.DateTimeFormat : Symbol(Intl.DateTimeFormat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2017.intl.d.ts, --, --))
>Intl : Symbol(Intl, Decl(lib.es5.d.ts, --, --), Decl(lib.es2016.intl.d.ts, --, --), Decl(lib.es2017.intl.d.ts, --, --), Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2019.intl.d.ts, --, --) ... and 2 more)
>DateTimeFormat : Symbol(Intl.DateTimeFormat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2017.intl.d.ts, --, --))
>supportedLocalesOf : Symbol(Intl.DateTimeFormatConstructor.supportedLocalesOf, Decl(lib.es5.d.ts, --, --), Decl(lib.es2020.intl.d.ts, --, --))
>readonlyLocales : Symbol(readonlyLocales, Decl(localesObjectArgument.ts, 9, 5))

new Intl.NumberFormat(enUS);
>Intl.NumberFormat : Symbol(Intl.NumberFormat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --))
>Intl : Symbol(Intl, Decl(lib.es5.d.ts, --, --), Decl(lib.es2016.intl.d.ts, --, --), Decl(lib.es2017.intl.d.ts, --, --), Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2019.intl.d.ts, --, --) ... and 2 more)
Expand All @@ -271,6 +323,12 @@ new Intl.NumberFormat([deDE, jaJP]);
>deDE : Symbol(deDE, Decl(localesObjectArgument.ts, 1, 5))
>jaJP : Symbol(jaJP, Decl(localesObjectArgument.ts, 2, 5))

new Intl.NumberFormat(readonlyLocales);
>Intl.NumberFormat : Symbol(Intl.NumberFormat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --))
>Intl : Symbol(Intl, Decl(lib.es5.d.ts, --, --), Decl(lib.es2016.intl.d.ts, --, --), Decl(lib.es2017.intl.d.ts, --, --), Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2019.intl.d.ts, --, --) ... and 2 more)
>NumberFormat : Symbol(Intl.NumberFormat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --))
>readonlyLocales : Symbol(readonlyLocales, Decl(localesObjectArgument.ts, 9, 5))

Intl.NumberFormat.supportedLocalesOf(enUS);
>Intl.NumberFormat.supportedLocalesOf : Symbol(Intl.NumberFormatConstructor.supportedLocalesOf, Decl(lib.es5.d.ts, --, --), Decl(lib.es2020.intl.d.ts, --, --))
>Intl.NumberFormat : Symbol(Intl.NumberFormat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --))
Expand All @@ -279,12 +337,11 @@ Intl.NumberFormat.supportedLocalesOf(enUS);
>supportedLocalesOf : Symbol(Intl.NumberFormatConstructor.supportedLocalesOf, Decl(lib.es5.d.ts, --, --), Decl(lib.es2020.intl.d.ts, --, --))
>enUS : Symbol(enUS, Decl(localesObjectArgument.ts, 0, 5))

Intl.NumberFormat.supportedLocalesOf([deDE, jaJP]);
Intl.NumberFormat.supportedLocalesOf(readonlyLocales);
>Intl.NumberFormat.supportedLocalesOf : Symbol(Intl.NumberFormatConstructor.supportedLocalesOf, Decl(lib.es5.d.ts, --, --), Decl(lib.es2020.intl.d.ts, --, --))
>Intl.NumberFormat : Symbol(Intl.NumberFormat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --))
>Intl : Symbol(Intl, Decl(lib.es5.d.ts, --, --), Decl(lib.es2016.intl.d.ts, --, --), Decl(lib.es2017.intl.d.ts, --, --), Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2019.intl.d.ts, --, --) ... and 2 more)
>NumberFormat : Symbol(Intl.NumberFormat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --))
>supportedLocalesOf : Symbol(Intl.NumberFormatConstructor.supportedLocalesOf, Decl(lib.es5.d.ts, --, --), Decl(lib.es2020.intl.d.ts, --, --))
>deDE : Symbol(deDE, Decl(localesObjectArgument.ts, 1, 5))
>jaJP : Symbol(jaJP, Decl(localesObjectArgument.ts, 2, 5))
>readonlyLocales : Symbol(readonlyLocales, Decl(localesObjectArgument.ts, 9, 5))

Loading