summaryrefslogtreecommitdiff
path: root/cli/dts/lib.es2020.intl.d.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2022-03-02 07:44:43 +1100
committerGitHub <noreply@github.com>2022-03-02 07:44:43 +1100
commit7fc5bfe51b7d405aaa5293ec6f1a8f1e9119aea2 (patch)
tree440bd7c939407adc69bedfb678ee16538353073e /cli/dts/lib.es2020.intl.d.ts
parent4be0365fb8251a8614f16e6162f4f43c9885d2a3 (diff)
feat(cli): update to TypeScript 4.6.2 (#13474)
Diffstat (limited to 'cli/dts/lib.es2020.intl.d.ts')
-rw-r--r--cli/dts/lib.es2020.intl.d.ts11
1 files changed, 8 insertions, 3 deletions
diff --git a/cli/dts/lib.es2020.intl.d.ts b/cli/dts/lib.es2020.intl.d.ts
index 47fe33ffd..3e47f89cf 100644
--- a/cli/dts/lib.es2020.intl.d.ts
+++ b/cli/dts/lib.es2020.intl.d.ts
@@ -220,17 +220,21 @@ declare namespace Intl {
interface NumberFormatOptions {
compactDisplay?: "short" | "long" | undefined;
notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
- signDisplay?: "auto" | "never" | "always" | undefined;
+ signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
unit?: string | undefined;
unitDisplay?: "short" | "long" | "narrow" | undefined;
+ currencyDisplay?: string | undefined;
+ currencySign?: string | undefined;
}
interface ResolvedNumberFormatOptions {
compactDisplay?: "short" | "long";
notation?: "standard" | "scientific" | "engineering" | "compact";
- signDisplay?: "auto" | "never" | "always";
+ signDisplay?: "auto" | "never" | "always" | "exceptZero";
unit?: string;
unitDisplay?: "short" | "long" | "narrow";
+ currencyDisplay?: string;
+ currencySign?: string;
}
interface DateTimeFormatOptions {
@@ -297,6 +301,7 @@ declare namespace Intl {
};
interface DisplayNamesOptions {
+ locale: UnicodeBCP47LocaleIdentifier;
localeMatcher: RelativeTimeFormatLocaleMatcher;
style: RelativeTimeFormatStyle;
type: "language" | "region" | "script" | "currency";
@@ -319,7 +324,7 @@ declare namespace Intl {
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of).
*/
- of(code: string): string;
+ of(code: string): string | undefined;
/**
* Returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current
* [`Intl/DisplayNames`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.