-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptHelp WantedYou can do thisYou can do this
Milestone
Description
Bug Report
currencySign is missing from NumberFormatOptions
🔎 Search Terms
currencySign
🕗 Version & Regression Information
I can see it's missing in the types for es5, just as it was added to the options here #40709 I'll create a pull tomorrow hopefully
⏯ Playground Link
Updated Playground link with relevant code
💻 Code
let formatter = new Intl.NumberFormat('en-NZ', { style: 'currency', currency: 'NZD', currencySign: 'accounting' });
formatter.resolvedOptions().currencySign;
🙁 Actual behavior
I get a TS error Property 'currencySign' does not exist on type 'ResolvedNumberFormatOptions'.(2339)
🙂 Expected behavior
I shouldn't get a TS error
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptHelp WantedYou can do thisYou can do this