NumberFormatOptions is missing currencySign option #40622
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Help Wanted
You can do this
PursuitFellowship
Help wanted from Pursuit fellowship; others please avoid until Dec 19
Milestone
currencySign
is missing fromNumberFormatOptions
TypeScript Version: 4.1.0-dev.20200916
Search Terms: NumberFormatOptions notation
Code
Expected behavior:
I should be able to use NumberFormat's notation option. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat
Actual behavior:
Argument of type '{ style: string; currency: string; currencySign: string; }' is not assignable to parameter of type 'NumberFormatOptions'.
Object literal may only specify known properties, and 'currencySign' does not exist in type 'NumberFormatOptions'
Playground Link: None
Related Issues: #36533
The text was updated successfully, but these errors were encountered: