fix(46712): Add "exceptZero" for "signDisplay" option of Intl.NumberFormat() (#46740)

This commit is contained in:
Mohammad Aziz 2021-11-12 16:42:21 +05:30 committed by GitHub
parent 1298f498f4
commit fe3e117cb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -200,7 +200,7 @@ declare namespace Intl {
interface NumberFormatOptions { interface NumberFormatOptions {
compactDisplay?: "short" | "long" | undefined; compactDisplay?: "short" | "long" | undefined;
notation?: "standard" | "scientific" | "engineering" | "compact" | undefined; notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
signDisplay?: "auto" | "never" | "always" | undefined; signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
unit?: string | undefined; unit?: string | undefined;
unitDisplay?: "short" | "long" | "narrow" | undefined; unitDisplay?: "short" | "long" | "narrow" | undefined;
} }
@ -208,7 +208,7 @@ declare namespace Intl {
interface ResolvedNumberFormatOptions { interface ResolvedNumberFormatOptions {
compactDisplay?: "short" | "long"; compactDisplay?: "short" | "long";
notation?: "standard" | "scientific" | "engineering" | "compact"; notation?: "standard" | "scientific" | "engineering" | "compact";
signDisplay?: "auto" | "never" | "always"; signDisplay?: "auto" | "never" | "always" | "exceptZero";
unit?: string; unit?: string;
unitDisplay?: "short" | "long" | "narrow"; unitDisplay?: "short" | "long" | "narrow";
} }