Closed
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