Skip to content

Intl.DurationFormat missing from library definitions #60608

Open
@printfn

Description

⚙ Compilation target

ESNext

⚙ Library

ESNext

Missing / Incorrect Definition

Intl.DurationFormat is missing. It's implemented in all browsers except Firefox.

Sample Code

new Intl.DurationFormat('en-US', { style: 'long' }).format({ hours: 5, minutes: 2, seconds: 42 })
// '5 hours, 2 minutes, 42 seconds'

Documentation Link

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat

https://github.com/tc39/proposal-intl-duration-format

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