@@ -291,12 +291,34 @@ declare namespace Intl {
291291 new ( tag : BCP47LanguageTag | Locale , options ?: LocaleOptions ) : Locale ;
292292 } ;
293293
294- interface DisplayNamesOptions {
295- locale : UnicodeBCP47LocaleIdentifier ;
294+ type DisplayNamesFallback =
295+ | "code"
296+ | "none" ;
297+
298+ type ResolvedDisplayNamesType =
299+ | "language"
300+ | "region"
301+ | "script"
302+ | "currency" ;
303+
304+ type DisplayNamesType =
305+ | ResolvedDisplayNamesType
306+ | "calendar"
307+ | "datetimeField" ;
308+
309+ interface DisplayNamesOptions {
296310 localeMatcher : RelativeTimeFormatLocaleMatcher ;
297311 style : RelativeTimeFormatStyle ;
298- type : "language" | "region" | "script" | "currency" ;
299- fallback : "code" | "none" ;
312+ type : DisplayNamesType ;
313+ languageDisplay : "dialect" | "standard" ;
314+ fallback : DisplayNamesFallback ;
315+ }
316+
317+ interface ResolvedDisplayNamesOptions {
318+ locale : UnicodeBCP47LocaleIdentifier ;
319+ style : RelativeTimeFormatStyle ;
320+ type : ResolvedDisplayNamesType ;
321+ fallback : DisplayNamesFallback ;
300322 }
301323
302324 interface DisplayNames {
@@ -322,7 +344,7 @@ declare namespace Intl {
322344 *
323345 * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions).
324346 */
325- resolvedOptions ( ) : DisplayNamesOptions ;
347+ resolvedOptions ( ) : ResolvedDisplayNamesOptions ;
326348 }
327349
328350 /**
0 commit comments