summaryrefslogtreecommitdiff
path: root/cli/tsc/dts/lib.es2018.intl.d.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-03-26 18:52:57 -0400
committerGitHub <noreply@github.com>2024-03-26 18:52:57 -0400
commitac4a5f74b8e56a360e0a0543a6fc45099e13b95a (patch)
tree463796fb830eae41fc039512bb1ce79919195735 /cli/tsc/dts/lib.es2018.intl.d.ts
parent6b95c53e48a2622f4f2b6fdfa6c2c26dc30bbba4 (diff)
feat: TypeScript 5.4 (#23086)
Fork PR: https://github.com/denoland/TypeScript/pull/10 Closes #23080
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";