lib Update Request
Configuration Check
My compilation target is esnext and my lib is the default.
Missing / Incorrect Definition
Intl.DateTimeFormat.prototype.formatToParts
Sample 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
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