summaryrefslogtreecommitdiff
path: root/cli/tsc/dts/lib.es2018.intl.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tsc/dts/lib.es2018.intl.d.ts')
-rw-r--r--cli/tsc/dts/lib.es2018.intl.d.ts11
1 files changed, 6 insertions, 5 deletions
diff --git a/cli/tsc/dts/lib.es2018.intl.d.ts b/cli/tsc/dts/lib.es2018.intl.d.ts
index da34dae58..8517ba938 100644
--- a/cli/tsc/dts/lib.es2018.intl.d.ts
+++ b/cli/tsc/dts/lib.es2018.intl.d.ts
@@ -47,12 +47,13 @@ declare namespace Intl {
select(n: number): LDMLPluralRule;
}
- const PluralRules: {
- new (locales?: string | string[], options?: PluralRulesOptions): PluralRules;
- (locales?: string | string[], options?: PluralRulesOptions): PluralRules;
+ interface PluralRulesConstructor {
+ 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[];
+ }
- supportedLocalesOf(locales: string | string[], options?: { localeMatcher?: "lookup" | "best fit"; }): string[];
- };
+ const PluralRules: PluralRulesConstructor;
// We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here:
type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name";