Skip to content

Commit 7cba519

Browse files
author
Orta Therox
authored
Go back to the old spelling of NumberFormatPartTypes to not break DT (#45889)
1 parent 61ddc51 commit 7cba519

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/es2018.intl.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,10 +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;
43+
type NumberFormatPartTypes = ES2018NumberFormatPartType | ES2020NumberFormatPartType;
4444

4545
interface NumberFormatPart {
46-
type: NumberFormatPartType;
46+
type: NumberFormatPartTypes;
4747
value: string;
4848
}
4949

0 commit comments

Comments
 (0)