Skip to content

Commit 585603e

Browse files
authored
Add compactDisplay and signDisplay to NumberFormatOptions (#40039)
1 parent 8429ddd commit 585603e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/lib/es2020.intl.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,13 +263,17 @@ declare namespace Intl {
263263
};
264264

265265
interface NumberFormatOptions {
266+
compactDisplay?: string;
266267
notation?: string;
268+
signDisplay?: string;
267269
unit?: string;
268270
unitDisplay?: string;
269271
}
270272

271273
interface ResolvedNumberFormatOptions {
274+
compactDisplay?: string;
272275
notation?: string;
276+
signDisplay?: string;
273277
unit?: string;
274278
unitDisplay?: string;
275279
}

tests/lib/lib.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3890,6 +3890,7 @@ declare module Intl {
38903890
interface NumberFormatOptions {
38913891
localeMatcher?: string;
38923892
style?: string;
3893+
compactDisplay?: string;
38933894
currency?: string;
38943895
currencyDisplay?: string;
38953896
unit?: string;
@@ -3901,12 +3902,14 @@ declare module Intl {
39013902
minimumSignificantDigits?: number;
39023903
maximumSignificantDigits?: number;
39033904
notation?: string;
3905+
signDisplay?: string;
39043906
}
39053907

39063908
interface ResolvedNumberFormatOptions {
39073909
locale: string;
39083910
numberingSystem: string;
39093911
style: string;
3912+
compactDisplay?: string;
39103913
currency?: string;
39113914
currencyDisplay?: string;
39123915
unit?: string;
@@ -3918,6 +3921,7 @@ declare module Intl {
39183921
maximumSignificantDigits?: number;
39193922
useGrouping: boolean;
39203923
notation?: string;
3924+
signDisplay?: string;
39213925
}
39223926

39233927
interface NumberFormat {

0 commit comments

Comments
 (0)