-
Notifications
You must be signed in to change notification settings - Fork 13k
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
lib Update Request
Configuration Check
My compilation target is ES2020
and my lib is esnext
.
Missing / Incorrect Definition
Intl.NumberFormat.formatToParts(number?: number).
The number
parameter can also be a bigint
.
Sample Code
This valid code:
Intl.NumberFormat([], {
style: 'currency',
currency: 'USD',
}).formatToParts(3500n);
Produces compiler error:
error TS2345: Argument of type '3500n' is not assignable to parameter of type 'number | undefined'.
Documentation Link
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