Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 382 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 382 Bytes

bn.js-typings

BN.js typings that allow natural imports.

Install

yarn install --dev bn.js-typings

Usage

First, you need to make sure that our package is included in your tsconfig.json file.

"include": [
  "./lib/**/*.ts", 
  "./node_modules/bn.js-typings/index.d.ts"
]

Then use it simply like this:

import { BN } from "bn.js"