Support bigint type for Intl.NumberFormat.formatToParts #43799
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
Milestone
lib Update Request
Configuration Check
My compilation target is
ES2020
and my lib isesnext
.Missing / Incorrect Definition
Intl.NumberFormat.formatToParts(number?: number).
The
number
parameter can also be abigint
.Sample Code
This valid code:
Produces compiler error:
Documentation Link
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/formatToParts
The text was updated successfully, but these errors were encountered: