mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
Go back to the old spelling of NumberFormatPartTypes to not break DT (#45889)
This commit is contained in:
parent
61ddc518ef
commit
7cba51947a
4
src/lib/es2018.intl.d.ts
vendored
4
src/lib/es2018.intl.d.ts
vendored
@ -40,10 +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;
|
||||
type NumberFormatPartTypes = ES2018NumberFormatPartType | ES2020NumberFormatPartType;
|
||||
|
||||
interface NumberFormatPart {
|
||||
type: NumberFormatPartType;
|
||||
type: NumberFormatPartTypes;
|
||||
value: string;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user