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
The toLocaleString function of Duration still has the Intl.DateTimeFormat type as second parameter. This should - according to spec - be the Intl.DurationFormat type.
Discussion about including the Duration formatting proposal has already started here #211
Maybe include correct types already - while waiting for a more mature polyfill.
temporal-polyfill/index.d.ts
Line 551 in 2238550
The toLocaleString function of Duration still has the Intl.DateTimeFormat type as second parameter. This should - according to spec - be the Intl.DurationFormat type.
Discussion about including the Duration formatting proposal has already started here
#211
Maybe include correct types already - while waiting for a more mature polyfill.
The formatjs polyfill has been developed quite a bit and probably comes with complete typing
see https://www.npmjs.com/package/@formatjs/intl-durationformat
The text was updated successfully, but these errors were encountered: