Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

formatRange[ToParts] should go Intl.DateTimeFormat but instead is in NumberFormat #47024

Closed
saschanaz opened this issue Dec 4, 2021 · 0 comments · Fixed by #47117
Closed
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Help Wanted You can do this
Milestone

Comments

@saschanaz
Copy link
Contributor

saschanaz commented Dec 4, 2021

Bug Report

🔎 Search Terms

🕗 Version & Regression Information

  • This is a crash
  • This changed between versions ______ and _______
  • This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
  • I was unable to test this on prior versions because _______

⏯ Playground Link

Playground link with relevant code

💻 Code

Intl.NumberFormat.prototype.formatRange // .prototype is any?!

new Intl.NumberFormat().formatRange // should not be available in es2021, still in stage 3
new Intl.DateTimeFormat().formatRange // should be available in es2021

🙁 Actual behavior

(As the title says)

🙂 Expected behavior

(As the comments say)

#45647 was confused about this.

@RyanCavanaugh RyanCavanaugh added Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript labels Dec 7, 2021
@RyanCavanaugh RyanCavanaugh added this to the Backlog milestone Dec 7, 2021
@RyanCavanaugh RyanCavanaugh added the Help Wanted You can do this label Dec 7, 2021
@sandersn sandersn assigned sandersn and unassigned sandersn Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Help Wanted You can do this
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants