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

Intl.DurationFormat missing from library definitions #60608

Open
printfn opened this issue Nov 26, 2024 · 0 comments · May be fixed by #60646
Open

Intl.DurationFormat missing from library definitions #60608

printfn opened this issue Nov 26, 2024 · 0 comments · May be fixed by #60646
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

@printfn
Copy link

printfn commented Nov 26, 2024

⚙ Compilation target

ESNext

⚙ Library

ESNext

Missing / Incorrect Definition

Intl.DurationFormat is missing. It's implemented in all browsers except Firefox. Firefox will be adding it in v134.

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

@RyanCavanaugh RyanCavanaugh added Bug A bug in TypeScript Help Wanted You can do this Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript labels Nov 28, 2024
@RyanCavanaugh RyanCavanaugh added this to the Backlog milestone Nov 28, 2024
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.

2 participants