Skip to content

Commit 2eecb3d

Browse files
author
Orta Therox
authored
Adds back NumberFormatPartType to the global types from intl (#45843)
1 parent 5b84512 commit 2eecb3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/es2018.intl.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ declare namespace Intl {
4040
// We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here:
4141
type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name";
4242
type ES2020NumberFormatPartType = "compact" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "unit" | "unknown";
43+
type NumberFormatPartType = ES2018NumberFormatPartType | ES2020NumberFormatPartType;
4344

4445
interface NumberFormatPart {
45-
type: ES2018NumberFormatPartType | ES2020NumberFormatPartType;
46+
type: NumberFormatPartType;
4647
value: string;
4748
}
4849

0 commit comments

Comments
 (0)