Skip to content

Commit cd31e67

Browse files
committed
test: update tests
1 parent 7094449 commit cd31e67

File tree

1 file changed

+25
-11
lines changed

1 file changed

+25
-11
lines changed

tests/lib/lib.d.ts

+25-11
Original file line numberDiff line numberDiff line change
@@ -3927,20 +3927,34 @@ declare module Intl {
39273927
supportedLocalesOf(locale: string, options?: NumberFormatOptions): string[];
39283928
}
39293929

3930+
type DateFormatNumericVerbosity = "numeric" | "2-digit";
3931+
type DateFormatNameVerbosity = "long" | "short" | "narrow";
3932+
39303933
interface DateTimeFormatOptions {
3931-
localeMatcher?: string;
3932-
weekday?: string;
3933-
era?: string;
3934-
year?: string;
3935-
month?: string;
3936-
day?: string;
3937-
hour?: string;
3938-
minute?: string;
3939-
second?: string;
3940-
timeZoneName?: string;
3941-
formatMatcher?: string;
3934+
/** output examples – numeric: "2020", 2-digit: "20" */
3935+
year?: DateFormatNumericVerbosity;
3936+
/** output examples – numeric: "3", 2-digit: "03", long: "March", short: "Mar", narrow: "M" */
3937+
month?: DateFormatNumericVerbosity | DateFormatNameVerbosity;
3938+
/** output examples – numeric: "2", 2-digit: "02" */
3939+
day?: DateFormatNumericVerbosity;
3940+
/** output examples – numeric: "2", 2-digit: "02" */
3941+
hour?: DateFormatNumericVerbosity;
3942+
/** output examples – numeric: "2", 2-digit: "02" */
3943+
minute?: DateFormatNumericVerbosity;
3944+
/** output examples – numeric: "2", 2-digit: "02" */
3945+
second?: DateFormatNumericVerbosity;
3946+
/** output examples – long: "Thursday", short: "Thu", narrow: "T" */
3947+
weekday?: DateFormatNameVerbosity;
3948+
/** output examples – long: "Anno Domini", short: "AD", narrow "A" */
3949+
era?: DateFormatNameVerbosity;
3950+
/** set to `true` to force 12-hour am/pm "dayPeriod" values, or `false` to force 24-hour time without */
39423951
hour12?: boolean;
3952+
/** output examples – long: "Pacific Daylight Time", short: "PDT" */
3953+
timeZoneName?: "long" | "short";
3954+
/** set to the timezone name you want to render date and time for, e g "UTC", "Europe/Rome" */
39433955
timeZone?: string;
3956+
localeMatcher?: "best fit" | "lookup";
3957+
formatMatcher?: "best fit" | "basic";
39443958
}
39453959

39463960
interface ResolvedDateTimeFormatOptions {

0 commit comments

Comments
 (0)