Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

types-bn

machinomy1.2kApache-2.00.0.1TypeScript support: included

TypeScript declaration for bn.js

readme

TypeScript declaration for bn.js

Installation

Via npm:

npm install --save-dev types-bn

or yarn:

yarn add types-bn --dev

Don't forget to manually include index.d.ts within an include section of your tsconfig.json

"include": [
    ...
    "./node_modules/types-bn/index.d.ts"
]