Intl.DisplayNamesOptions missing property locale
#46845
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Milestone
Bug Report
Based on the MDN documentation resolvedOptions of DisplayNames (and all other intl apis) should contain a
locale
propertyhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions
🔎 Search Terms
Intl.DisplayNamesOptions
resolvedOptions
locale
🕗 Version & Regression Information
4.5.2
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
console.log(usedOptions.locale);
has a typing errorProperty 'locale' does not exist on type 'DisplayNamesOptions'.(2339)
🙂 Expected behavior
No type error because MDN's documentation seems to be correct across all browsers which support Intl.
The text was updated successfully, but these errors were encountered: