Intl.DisplayNames.prototype.of should return string | undefined #47143
Labels
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Effort: Casual
Good issue if you're already used to contributing to the codebase. Harder than "good first issue".
Fix Available
A PR has been opened for this issue
Milestone
Bug Report
🔎 Search Terms
🕗 Version & Regression Information
The type information didn't exist before 4.5
PR by @orta #45647
🙁 Actual behavior
Intl.DisplayNames.prototype.of
returnsstring
inlib.es2020.intl.d.ts
🙂 Expected behavior
It should return
string | undefined
See spec https://tc39.es/ecma402/#sec-Intl.DisplayNames.prototype.of
The text was updated successfully, but these errors were encountered: