File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,12 @@ declare namespace Intl {
65
65
style ?: ListFormatStyle | undefined ;
66
66
}
67
67
68
+ interface ResolvedListFormatOptions {
69
+ locale : string ;
70
+ style : ListFormatStyle ;
71
+ type : ListFormatType ;
72
+ }
73
+
68
74
interface ListFormat {
69
75
/**
70
76
* Returns a string with a language-specific representation of the list.
@@ -91,6 +97,15 @@ declare namespace Intl {
91
97
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/formatToParts).
92
98
*/
93
99
formatToParts ( list : Iterable < string > ) : { type : "element" | "literal" , value : string ; } [ ] ;
100
+
101
+ /**
102
+ * Returns a new object with properties reflecting the locale and style
103
+ * formatting options computed during the construction of the current
104
+ * `Intl.ListFormat` object.
105
+ *
106
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/resolvedOptions).
107
+ */
108
+ resolvedOptions ( ) : ResolvedListFormatOptions ;
94
109
}
95
110
96
111
const ListFormat : {
You can’t perform that action at this time.
0 commit comments