diff --git a/src/lib/es2021.intl.d.ts b/src/lib/es2021.intl.d.ts index 9de1a9a2036..b6e3dbf156f 100644 --- a/src/lib/es2021.intl.d.ts +++ b/src/lib/es2021.intl.d.ts @@ -65,6 +65,12 @@ declare namespace Intl { style?: ListFormatStyle | undefined; } + interface ResolvedListFormatOptions { + locale: string; + style: ListFormatStyle; + type: ListFormatType; + } + interface ListFormat { /** * Returns a string with a language-specific representation of the list. @@ -91,6 +97,15 @@ declare namespace Intl { * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/formatToParts). */ formatToParts(list: Iterable): { type: "element" | "literal", value: string; }[]; + + /** + * Returns a new object with properties reflecting the locale and style + * formatting options computed during the construction of the current + * `Intl.ListFormat` object. + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/resolvedOptions). + */ + resolvedOptions(): ResolvedListFormatOptions; } const ListFormat: {