Skip to content

Commit e97003f

Browse files
authored
Merge pull request #37721 from benmccann/NumberFormatOptions-notation
Add support for NumberFormatOptions notation
2 parents cefee94 + 32be760 commit e97003f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/lib/es2020.intl.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,4 +261,12 @@ declare namespace Intl {
261261
options?: RelativeTimeFormatOptions,
262262
): BCP47LanguageTag[];
263263
};
264+
265+
interface NumberFormatOptions {
266+
notation?: string;
267+
}
268+
269+
interface ResolvedNumberFormatOptions {
270+
notation?: string;
271+
}
264272
}

tests/lib/lib.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3898,6 +3898,7 @@ declare module Intl {
38983898
maximumFractionDigits?: number;
38993899
minimumSignificantDigits?: number;
39003900
maximumSignificantDigits?: number;
3901+
notation?: string;
39013902
}
39023903

39033904
interface ResolvedNumberFormatOptions {
@@ -3912,6 +3913,7 @@ declare module Intl {
39123913
minimumSignificantDigits?: number;
39133914
maximumSignificantDigits?: number;
39143915
useGrouping: boolean;
3916+
notation?: string;
39153917
}
39163918

39173919
interface NumberFormat {

0 commit comments

Comments
 (0)