Skip to content

Support Intl.NumberFormat.formatToParts in ES2018 #41299

Closed

Description

TypeScript Version: Nightly

Search Terms:

Code

new Intl.NumberFormat().formatToParts

Expected behavior: Should be supported

Actual behavior: It requires ESNext

Playground Link: https://www.typescriptlang.org/play?target=5#code/HYUw7gBAksAuA2A6AcgVwLYCMQCcBiA9jugIawAUAlIgGZGmwAqBACiTrAM5A

See also https://github.com/tc39/proposals/blob/master/ecma402/finished-proposals.md

Activity

  1. sarathps93 commented on Nov 19, 2020

    @sarathps93
  2. saschanaz commented on Nov 21, 2020

    @saschanaz
    ContributorAuthor

    Sure, I'm not working on this at least.

  3. rastenis commented on May 16, 2021

    @rastenis
    Contributor

    Ryan Cavanaugh (@RyanCavanaugh) After moving Intl.NumberFormat.formatToParts to es2018.intl.d.ts, esnext.intl.d.ts remains empty. Should it be kept that way, or should it be removed completely?

  4. saschanaz commented on Jun 12, 2021

    @saschanaz
    ContributorAuthor

    You can remove esnext.intl.d.ts and make esnext.intl point to es2018.intl.d.ts in src/compiler/commandLineParser.ts.

  5. orta commented on Sep 8, 2021

    @orta
    Contributor

    This is in with #45647 👍🏻

  6. locked as resolved and limited conversation to collaborators on Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions