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
- Host: GitHub
- URL: https://github.com/dethcrypto/bn.js-typings
- Owner: dethcrypto
- Created: 2018-12-09T00:55:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-10T07:47:39.000Z (over 7 years ago)
- Last Synced: 2025-10-22T23:40:49.738Z (8 months ago)
- Size: 1.95 KB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
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"
```