Skip to content

Add Intl.supportedValuesOf enumeration to lib.*.intl.d.ts as support in Node.js18, and v8, and various browsers exists #49231

Closed
@23RoMax

Description

@23RoMax

lib Update Request

Configuration Check

My compilation target is ES2022 and my lib is "esnext.intl", "es2021.intl", "ESNext","ES2022", "ES2021", "es6".

Missing / Incorrect Definition

The static method Intl.supportedValuesOf is supported by Node.js since v18 release from April. This is missing in the definition of Intl.

Sample Code

Intl.supportedValuesOf("timeZone").forEach(function(timeZone) {
   console.log(timeZone);
});

Documentation Link

Ecmascript - it is listed as a stage3 proposal, but given that it is already implemented in v8 & mentioned in the MDN this seems reasonable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptFix AvailableA PR has been opened for this issueHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions