Add compactDisplay and signDisplay to NumberFormatOptions (#40039)

This commit is contained in:
Neil Kistner 2020-08-21 02:49:22 -05:00 committed by GitHub
parent 8429ddd4f0
commit 585603e934
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -263,13 +263,17 @@ declare namespace Intl {
};
interface NumberFormatOptions {
compactDisplay?: string;
notation?: string;
signDisplay?: string;
unit?: string;
unitDisplay?: string;
}
interface ResolvedNumberFormatOptions {
compactDisplay?: string;
notation?: string;
signDisplay?: string;
unit?: string;
unitDisplay?: string;
}

4
tests/lib/lib.d.ts vendored
View file

@ -3890,6 +3890,7 @@ declare module Intl {
interface NumberFormatOptions {
localeMatcher?: string;
style?: string;
compactDisplay?: string;
currency?: string;
currencyDisplay?: string;
unit?: string;
@ -3901,12 +3902,14 @@ declare module Intl {
minimumSignificantDigits?: number;
maximumSignificantDigits?: number;
notation?: string;
signDisplay?: string;
}
interface ResolvedNumberFormatOptions {
locale: string;
numberingSystem: string;
style: string;
compactDisplay?: string;
currency?: string;
currencyDisplay?: string;
unit?: string;
@ -3918,6 +3921,7 @@ declare module Intl {
maximumSignificantDigits?: number;
useGrouping: boolean;
notation?: string;
signDisplay?: string;
}
interface NumberFormat {