An open API service indexing awesome lists of open source software.

https://github.com/dethcrypto/bn.js-typings

BN.js typings that allow natural imports
https://github.com/dethcrypto/bn.js-typings

Last synced: 4 months ago
JSON representation

BN.js typings that allow natural imports

Awesome Lists containing this project

README

          

# bn.js-typings

BN.js typings that allow natural imports.

## Install

```sh
yarn install --dev bn.js-typings
```

## Usage

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

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

Then use it simply like this:

```typescript
import { BN } from "bn.js"
```