Skip to content
This repository was archived by the owner on Jun 17, 2021. It is now read-only.

Commit 6c8e085

Browse files
committed
Fix BN and rlp re-exports' types
1 parent ba3e344 commit 6c8e085

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/externals.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
* @packageDocumentation
55
*/
66

7-
import * as BN from 'bn.js'
8-
import * as rlp from 'rlp'
7+
// TODO: This can be replaced with a normal ESM import once
8+
// the new major version of the typescript config package
9+
// is released and adopted here.
10+
import BN = require('bn.js');
11+
import rlp = require('rlp');
912

1013
/**
1114
* [`BN`](https://github.com/indutny/bn.js)

0 commit comments

Comments
 (0)