Intl.DateTimeFormat.formatToParts() does not include part of type fractionalSecond
#48882
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Fix Available
A PR has been opened for this issue
Good First Issue
Well scoped, documented and has the green light
Help Wanted
You can do this
Milestone


lib Update Request
Configuration Check
My compilation target is
esnextand my lib isthe default.Missing / Incorrect Definition
Intl.DateTimeFormat.prototype.formatToPartsSample Code
new Intl.DateTimeFormat().formatToParts().find((val) => val.type === 'fractionalSecond')Documentation Link
Added in ECMAScript 2021: https://402.ecma-international.org/#sec-formatdatetimepattern
Also mentioned in MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/formatToParts#description
The text was updated successfully, but these errors were encountered: