Skip to content

Commit cad1884

Browse files
committed
Move formatToParts to es2018
1 parent 1de29af commit cad1884

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/lib/es2018.intl.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

src/lib/esnext.intl.d.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1 @@
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 {}

0 commit comments

Comments
 (0)