Skip to content

Intl.ListFormat still shows error with target ES2021 #50381

@blessanm86

Description

@blessanm86

Bug Report

I am still getting errors that ListFormat types are not available. I followed this #46907 and set the target as ES2021 and still doesn't work.

🔎 Search Terms

TS2339: Property 'ListFormat' does not exist on type 'typeof Intl'

🕗 Version & Regression Information

I tested with version 4.6.2 and also tried with the latest version and include a link below

⏯ Playground Link

Playground link with relevant code

💻 Code

const emphasizedList = new Intl.ListFormat('en', {
    style: 'long',
    type: 'conjunction',
}).format(['a','b']);

🙁 Actual behavior

Type information is not available

🙂 Expected behavior

Intl api types should be available when tartget is set to ES2021

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