• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1declare 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): NumberFormatPart[];
11    }
12}
13