Skip to content

hourCycle, dateStyle and timeStyle missing from interface Intl.ResolvedDateTimeFormatOptions #42577

New issue

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

Closed
flip-it opened this issue Feb 1, 2021 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@flip-it
Copy link

flip-it commented Feb 1, 2021

Bug Report

πŸ”Ž Search Terms

Intl
DateTimeFormat
ResolvedDateTimeFormatOptions
hourCycle

πŸ•— Version & Regression Information

4.1.3

⏯ Playground Link

Playground link with relevant code

πŸ’» Code

const { hour12, hour, hourCycle, dateStyle, timeStyle } = new Intl.DateTimeFormat('en-US', {
    hour: 'numeric',
}).resolvedOptions()

πŸ™ Actual behavior

Property 'hourCycle' does not exist on type 'ResolvedDateTimeFormatOptions'.
Property 'dateStyle' does not exist on type 'ResolvedDateTimeFormatOptions'.
Property 'timeStyle' does not exist on type 'ResolvedDateTimeFormatOptions'

πŸ™‚ Expected behavior

To be able to use all properties in Resolved Options of DateTimeFormat Instances defined in https://tc39.es/ecma402/#table-datetimeformat-resolvedoptions-properties

@MartinJohns
Copy link
Contributor

Duplicate of #35865 / #34399.

@RyanCavanaugh RyanCavanaugh added the Duplicate An existing issue was already created label Feb 1, 2021
@typescript-bot
Copy link
Collaborator

This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

4 participants