mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-03 00:48:49 -05:00
add Intl.supportedValuesOf (#53511)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
This commit is contained in:
9
src/lib/es2022.intl.d.ts
vendored
9
src/lib/es2022.intl.d.ts
vendored
@@ -88,4 +88,13 @@ declare namespace Intl {
|
||||
*/
|
||||
supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: Pick<SegmenterOptions, "localeMatcher">): BCP47LanguageTag[];
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns a sorted array of the supported collation, calendar, currency, numbering system, timezones, and units by the implementation.
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/supportedValuesOf)
|
||||
*
|
||||
* @param key A string indicating the category of values to return.
|
||||
* @returns A sorted array of the supported values.
|
||||
*/
|
||||
function supportedValuesOf(key: "calendar" | "collation" | "currency" | "numberingSystem" | "timeZone" | "unit"): string[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user