It seems that TypeScript has supported BigInt since version 3.2, and my project is using TypeScript 3.5. Despite not explicitly declaring any variables as BigInt
, I recently integrated a package called BufferUtility from https://github.com/Pharuxtan/BufferUtility#readme.
However, upon adding this package, my project encountered a compilation error:
node_modules/bufferutility/index.d.ts(37,37): error TS2304: Cannot find name 'BigInt'.
This issue took me by surprise, as my research indicated that it could be a problem for those on TypeScript versions older than 3.2. Am I overlooking something here?