diff --git a/src/lib/es5.d.ts b/src/lib/es5.d.ts index 478f78f772a07..0cdf015a26c4b 100644 --- a/src/lib/es5.d.ts +++ b/src/lib/es5.d.ts @@ -4278,19 +4278,30 @@ declare namespace Intl { }; interface DateTimeFormatOptions { - localeMatcher?: string; - weekday?: string; - era?: string; - year?: string; - month?: string; - day?: string; - hour?: string; - minute?: string; - second?: string; - timeZoneName?: string; - formatMatcher?: string; + /** output examples – numeric: "2020", 2-digit: "20" */ + year?: "numeric" | "2-digit"; + /** output examples – numeric: "3", 2-digit: "03", long: "March", short: "Mar", narrow: "M" */ + month?: "numeric" | "2-digit" | "long" | "short" | "narrow"; + /** output examples – numeric: "2", 2-digit: "02" */ + day?: "numeric" | "2-digit"; + /** output examples – numeric: "2", 2-digit: "02" */ + hour?: "numeric" | "2-digit"; + /** output examples – numeric: "2", 2-digit: "02" */ + minute?: "numeric" | "2-digit"; + /** output examples – numeric: "2", 2-digit: "02" */ + second?: "numeric" | "2-digit"; + /** output examples – long: "Thursday", short: "Thu", narrow: "T" */ + weekday?: "long" | "short" | "narrow"; + /** output examples – long: "Anno Domini", short: "AD", narrow "A" */ + era?: "long" | "short" | "narrow"; + /** set to `true` to force 12-hour am/pm "dayPeriod" values, or `false` to force 24-hour time without */ hour12?: boolean; + /** output examples – long: "Pacific Daylight Time", short: "PDT" */ + timeZoneName?: "long" | "short"; + /** set to the timezone name you want to render date and time for, e g "UTC", "Europe/Rome" */ timeZone?: string; + localeMatcher?: "best fit" | "lookup"; + formatMatcher?: "best fit" | "basic"; } interface ResolvedDateTimeFormatOptions {