You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(46907): Add Intl.ListFormat type declarations (#47254)
* feat(46907): Add ListFormat type declarations
* feat(46907): Fix JSDoc return type
* feat(46907): Use correct formatToParts list parameter type description, link to Array MDN page
* refactor(46907): Change ListFormatLocaleMatcher MDN link to match the rest
* feat(46907): Add explicit undefined to ListFormatOptions
/** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
* Returns an Array of objects representing the different components that can be used to format a list of values in a locale-aware fashion.
76
+
*
77
+
* @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array), to be formatted according to a locale.
78
+
*
79
+
* @throws `TypeError` if `list` includes something other than the possible values.
80
+
*
81
+
* @returns {{ type: "element" | "literal", value: string; }[]} An Array of components which contains the formatted parts from the list.
0 commit comments