Skip to content

Commit 2656cd8

Browse files
committed
Extends DateTimeFormatOptions for new Intl APIs - re: microsoft#45420
1 parent 872894d commit 2656cd8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/lib/es2020.intl.d.ts

+7
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,13 @@ declare namespace Intl {
225225
fractionalSecondDigits?: 0 | 1 | 2 | 3;
226226
}
227227

228+
interface DateTimeFormatOptions {
229+
dateStyle?: "full" | "long" | "medium" | "short";
230+
timeStyle?: "full" | "long" | "medium" | "short";
231+
dayPeriod?: "narrow" | "short" | "long";
232+
hourCycle?: "h11" | "h12" | "h23" | "h24";
233+
}
234+
228235
type LocaleHourCycleKey = "h12" | "h23" | "h11" | "h24";
229236
type LocaleCollationCaseFirst = "upper" | "lower" | "false";
230237

0 commit comments

Comments
 (0)