You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DurationFormat imported globally doesn't provide type declarations #6013
TypeScript 5.9 now includes Intl.DurationFormat type declarations in lib.es2025.intl.d.ts. If you upgrade to TS 5.9+ and target es2025 or esnext, new Intl.DurationFormat() will have full type support out of the box.
Activity
michaeldoubek commentedon Feb 2, 2026
Also would be willing to implement it, but it would be my first ever OSS contribution, so I would appreciate a bit of help 😄
longlho commentedon Feb 2, 2026
yup PR's always welcome. Checkout our CONTRIBUTING.md for the dev setup
michaeldoubek commentedon Feb 3, 2026
@longlho Ok, I'll do it. Guess I'll get to it this weekend. Assign me please.
fix(@formatjs/intl-durationformat): add global Intl.DurationFormat ty…
longlho commentedon Mar 3, 2026
TypeScript 5.9 now includes
Intl.DurationFormattype declarations inlib.es2025.intl.d.ts. If you upgrade to TS 5.9+ and targetes2025oresnext,new Intl.DurationFormat()will have full type support out of the box.See: microsoft/TypeScript#60608
ranisalt commentedon Mar 16, 2026
@longlho
lib.es2025.intl.d.tsis not shipped with TypeScript as of 5.9.3 (latest)In fact, it even predates the PR that is supposed to add it microsoft/TypeScript#63046