Adds back NumberFormatPartType to the global types from intl (#45843)

This commit is contained in:
Orta Therox 2021-09-13 19:02:38 +00:00 committed by GitHub
parent 5b84512ccc
commit 2eecb3d954
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,9 +40,10 @@ declare namespace Intl {
// We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here:
type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name";
type ES2020NumberFormatPartType = "compact" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "unit" | "unknown";
type NumberFormatPartType = ES2018NumberFormatPartType | ES2020NumberFormatPartType;
interface NumberFormatPart {
type: ES2018NumberFormatPartType | ES2020NumberFormatPartType;
type: NumberFormatPartType;
value: string;
}