Skip to content

update es2020.intl DisplayNames#of - #47157

Merged
Orta Therox (orta) merged 1 commit into
microsoft:mainfrom
tao-cumplido:lib-es2020-intl-displaynames-of
Dec 15, 2021
Merged

Orta Therox (orta) merged 1 commit into
microsoft:mainfrom
tao-cumplido:lib-es2020-intl-displaynames-of

Conversation

@tao-cumplido

Copy link
Copy Markdown
Contributor

fix return type of Intl.DisplayNames.prototype.of
was typed to return always string but can actually return undefined too
see spec https://tc39.es/ecma402/#sec-Intl.DisplayNames.prototype.of

Fixes #47143

fix return type of Intl.DisplayNames.prototype.of
was typed to return always string but can actually return undefined too
see spec https://tc39.es/ecma402/#sec-Intl.DisplayNames.prototype.of
@typescript-bot TypeScript Bot (typescript-bot) added the For Milestone Bug PRs that fix a bug with a specific milestone label Dec 15, 2021
@orta

Copy link
Copy Markdown
Contributor

Thanks!

@orta
Orta Therox (orta) merged commit 2bbdb31 into microsoft:main Dec 15, 2021
Martin Probst (mprobst) pushed a commit to mprobst/TypeScript that referenced this pull request Jan 10, 2022
fix return type of Intl.DisplayNames.prototype.of
was typed to return always string but can actually return undefined too
see spec https://tc39.es/ecma402/#sec-Intl.DisplayNames.prototype.of
@tao-cumplido
Tao Cumplido (tao-cumplido) deleted the lib-es2020-intl-displaynames-of branch January 11, 2022 15:10
@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

For Milestone Bug PRs that fix a bug with a specific milestone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants