• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1declare namespace Intl {
2    type DateTimeFormatPartTypes = "day" | "dayPeriod" | "era" | "hour" | "literal" | "minute" | "month" | "second" | "timeZoneName" | "weekday" | "year";
3
4    interface DateTimeFormatPart {
5        type: DateTimeFormatPartTypes;
6        value: string;
7    }
8
9    interface DateTimeFormat {
10        formatToParts(date?: Date | number): DateTimeFormatPart[];
11    }
12}
13