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
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.
ES2021
TS2339: Property 'ListFormat' does not exist on type 'typeof Intl'
I tested with version 4.6.2 and also tried with the latest version and include a link below
Playground link with relevant code
const emphasizedList = new Intl.ListFormat('en', { style: 'long', type: 'conjunction', }).format(['a','b']);
Type information is not available
Intl api types should be available when tartget is set to ES2021
The text was updated successfully, but these errors were encountered:
The changes were added in 4.7, and your link to the playground is set to ES2017. Change the target to the correct ES version and it works.
Sorry, something went wrong.
Thanks @MartinJohns that worked.
No branches or pull requests
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
🙁 Actual behavior
Type information is not available
🙂 Expected behavior
Intl api types should be available when tartget is set to ES2021
The text was updated successfully, but these errors were encountered: