We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As per MDN the option fractionalSecondDigits should accept 0, 1, 2, 3 which is not being respected by the latest TypeScript version.
fractionalSecondDigits
0
1
2
3
DateTimeFormat Intl.DateTimeFormat fractionalSecondDigits options
4.4.4
4.5.2
Playground link with relevant code
const date = new Date(); const str = date.toLocaleDateString("en-US", { fractionalSecondDigits: 3 // This is not allowed });
Doesn't work.
Allow this behaviour.
The text was updated successfully, but these errors were encountered:
I had the same issue, the solution is to have ES2021 or ES2021.Intl in your lib setting. See #42944
Sorry, something went wrong.
Makes sense. Thanks @ilogico!
@RyanCavanaugh you can close this issue if needed 😄
No branches or pull requests
Bug Report
As per MDN the option
fractionalSecondDigits
should accept0
,1
,2
,3
which is not being respected by the latest TypeScript version.🔎 Search Terms
DateTimeFormat
Intl.DateTimeFormat
fractionalSecondDigits
options
🕗 Version & Regression Information
4.4.4
and4.5.2
.⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
Doesn't work.
🙂 Expected behavior
Allow this behaviour.
The text was updated successfully, but these errors were encountered: