Skip to content

Intl.DateTimeFormat.formatToParts() does not include part of type fractionalSecond #48882

@jordanmbell

Description

@jordanmbell

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

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptFix AvailableA PR has been opened for this issueGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do this

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions