File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -38,4 +38,15 @@ declare namespace Intl {
3838 options ?: PluralRulesOptions ,
3939 ) : string [ ] ;
4040 } ;
41+
42+ type NumberFormatPartTypes = "compact" | "currency" | "decimal" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "fraction" | "group" | "infinity" | "integer" | "literal" | "minusSign" | "nan" | "plusSign" | "percentSign" | "unit" | "unknown" ;
43+
44+ interface NumberFormatPart {
45+ type : NumberFormatPartTypes ;
46+ value : string ;
47+ }
48+
49+ interface NumberFormat {
50+ formatToParts ( number ?: number ) : NumberFormatPart [ ] ;
51+ }
4152}
Original file line number Diff line number Diff line change 1- declare namespace Intl {
2- type NumberFormatPartTypes = "compact" | "currency" | "decimal" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "fraction" | "group" | "infinity" | "integer" | "literal" | "minusSign" | "nan" | "plusSign" | "percentSign" | "unit" | "unknown" ;
3-
4- interface NumberFormatPart {
5- type : NumberFormatPartTypes ;
6- value : string ;
7- }
8-
9- interface NumberFormat {
10- formatToParts ( number ?: number | bigint ) : NumberFormatPart [ ] ;
11- }
12- }
1+ declare namespace Intl { }
You can’t perform that action at this time.
0 commit comments