-
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
notation
is missing from NumberFormatOptions
Line 4236 in 91ffa1c
interface NumberFormatOptions { |
TypeScript Version: 3.7.5
Search Terms: NumberFormatOptions notation
Code
const str = new Intl.NumberFormat(undefined, {notation: 'scientific'}).format(100000);
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:
src/core/core.ticks.js(57,43): error TS2345: Argument of type '{ notation: string; minimumFractionDigits: number; maximumFractionDigits: number; }' is not assignable to parameter of type 'NumberFormatOptions'.
Playground Link: None
Related Issues: None
martinboksa, maneetgoyal, oriprice, NarasimhaReddyY, leettaylor and 13 more
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