@@ -4277,26 +4277,23 @@ declare namespace Intl {
4277
4277
supportedLocalesOf ( locales : string | string [ ] , options ?: NumberFormatOptions ) : string [ ] ;
4278
4278
} ;
4279
4279
4280
- type DateFormatNumericVerbosity = "numeric" | "2-digit" ;
4281
- type DateFormatNameVerbosity = "long" | "short" | "narrow" ;
4282
-
4283
4280
interface DateTimeFormatOptions {
4284
4281
/** output examples – numeric: "2020", 2-digit: "20" */
4285
- year ?: DateFormatNumericVerbosity ;
4282
+ year ?: "numeric" | "2-digit" ;
4286
4283
/** output examples – numeric: "3", 2-digit: "03", long: "March", short: "Mar", narrow: "M" */
4287
- month ?: DateFormatNumericVerbosity | DateFormatNameVerbosity ;
4284
+ month ?: "numeric" | "2-digit" | "long" | "short" | "narrow" ;
4288
4285
/** output examples – numeric: "2", 2-digit: "02" */
4289
- day ?: DateFormatNumericVerbosity ;
4286
+ day ?: "numeric" | "2-digit" ;
4290
4287
/** output examples – numeric: "2", 2-digit: "02" */
4291
- hour ?: DateFormatNumericVerbosity ;
4288
+ hour ?: "numeric" | "2-digit" ;
4292
4289
/** output examples – numeric: "2", 2-digit: "02" */
4293
- minute ?: DateFormatNumericVerbosity ;
4290
+ minute ?: "numeric" | "2-digit" ;
4294
4291
/** output examples – numeric: "2", 2-digit: "02" */
4295
- second ?: DateFormatNumericVerbosity ;
4292
+ second ?: "numeric" | "2-digit" ;
4296
4293
/** output examples – long: "Thursday", short: "Thu", narrow: "T" */
4297
- weekday ?: DateFormatNameVerbosity ;
4294
+ weekday ?: "long" | "short" | "narrow" ;
4298
4295
/** output examples – long: "Anno Domini", short: "AD", narrow "A" */
4299
- era ?: DateFormatNameVerbosity ;
4296
+ era ?: "long" | "short" | "narrow" ;
4300
4297
/** set to `true` to force 12-hour am/pm "dayPeriod" values, or `false` to force 24-hour time without */
4301
4298
hour12 ?: boolean ;
4302
4299
/** output examples – long: "Pacific Daylight Time", short: "PDT" */
0 commit comments