-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Description
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
Labels
No labels