BigInt.toLocaleString does not have any arguments, and Intl.NumberFormat does not support formatting BigInt #36970
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
TypeScript Version: 3.7.x-dev.201xxxxx
Search Terms:
bigint
bigint format
bigint numberformat
Code
Expected behavior:
The code runs without errors, and "2 000" and "3 000" is logged to the console.
Actual behavior:
The code fails to compile, with the errors
It shouldn't fail. Reference

ECMA Specification
Playground Link: Link
Related Issues:
The text was updated successfully, but these errors were encountered: