File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -291,12 +291,23 @@ declare namespace Intl {
291
291
new ( tag : BCP47LanguageTag | Locale , options ?: LocaleOptions ) : Locale ;
292
292
} ;
293
293
294
- interface DisplayNamesOptions {
295
- locale : UnicodeBCP47LocaleIdentifier ;
294
+ type DisplayNamesFallback =
295
+ | "code"
296
+ | "none"
297
+
298
+ interface DisplayNamesOptions {
296
299
localeMatcher : RelativeTimeFormatLocaleMatcher ;
297
300
style : RelativeTimeFormatStyle ;
301
+ type : "calendar" | "currency" | "datetimeField" | "language" | "region" | "script" ;
302
+ languageDisplay : "dialect" | "standard" ;
303
+ fallback : DisplayNamesFallback ;
304
+ }
305
+
306
+ interface ResolvedDisplayNamesOptions {
307
+ locale : UnicodeBCP47LocaleIdentifier ;
308
+ style : RelativeTimeFormatStyle ;
298
309
type : "language" | "region" | "script" | "currency" ;
299
- fallback : "code" | "none" ;
310
+ fallback : DisplayNamesFallback ;
300
311
}
301
312
302
313
interface DisplayNames {
@@ -322,7 +333,7 @@ declare namespace Intl {
322
333
*
323
334
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions).
324
335
*/
325
- resolvedOptions ( ) : DisplayNamesOptions ;
336
+ resolvedOptions ( ) : ResolvedDisplayNamesOptions ;
326
337
}
327
338
328
339
/**
You can’t perform that action at this time.
0 commit comments