Skip to content

Intl.DateTimeFormat options object is missing propertiesΒ #47700

Closed
@tefricker

Description

@tefricker

Bug Report

πŸ”Ž Search Terms

'DateTimeFormat', 'Intl'

πŸ•— Version & Regression Information

This is the behavior in every version I tried, and I reviewed the FAQ for entries about Intl.DateTimeFormat

⏯ Playground Link

Playground link with relevant code

πŸ’» Code

const date = new Date();

const formatted = new Intl.DateTimeFormat('en', {
			dateStyle: 'short',
			timeStyle: 'short',
		}).format(date);

console.log(formatted);

πŸ™ Actual behavior

Intl.DateTimeFormat options object is missing properties.

πŸ™‚ Expected behavior

Intl.DateTimeFormat options object should have types for dateStyle and timeStyle

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions