Skip to content

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

Closed

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScript

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions