Skip to content

Intl.DisplayNames.prototype.of should return string | undefined #47143

Closed
@tao-cumplido

Description

@tao-cumplido

Bug Report

🔎 Search Terms

  • intl
  • displaynames

🕗 Version & Regression Information

The type information didn't exist before 4.5
PR by @orta #45647

🙁 Actual behavior

Intl.DisplayNames.prototype.of returns string in lib.es2020.intl.d.ts

🙂 Expected behavior

It should return string | undefined
See spec https://tc39.es/ecma402/#sec-Intl.DisplayNames.prototype.of

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptEffort: CasualGood issue if you're already used to contributing to the codebase. Harder than "good first issue".Fix AvailableA PR has been opened for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions