From 6c8e0850a4b1aeab54fd582e6619a390386f6ff9 Mon Sep 17 00:00:00 2001 From: Patricio Palladino Date: Fri, 31 Jul 2020 20:51:17 -0300 Subject: [PATCH 1/2] Fix BN and rlp re-exports' types --- src/externals.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/externals.ts b/src/externals.ts index 01aea919..6061e474 100644 --- a/src/externals.ts +++ b/src/externals.ts @@ -4,8 +4,11 @@ * @packageDocumentation */ -import * as BN from 'bn.js' -import * as rlp from 'rlp' +// TODO: This can be replaced with a normal ESM import once +// the new major version of the typescript config package +// is released and adopted here. +import BN = require('bn.js'); +import rlp = require('rlp'); /** * [`BN`](https://github.com/indutny/bn.js) From fa5801f6721025c811f3280f4163f38d597df1dc Mon Sep 17 00:00:00 2001 From: Patricio Palladino Date: Fri, 31 Jul 2020 20:52:25 -0300 Subject: [PATCH 2/2] Fix linter errors --- src/externals.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/externals.ts b/src/externals.ts index 6061e474..22eb12af 100644 --- a/src/externals.ts +++ b/src/externals.ts @@ -7,8 +7,8 @@ // TODO: This can be replaced with a normal ESM import once // the new major version of the typescript config package // is released and adopted here. -import BN = require('bn.js'); -import rlp = require('rlp'); +import BN = require('bn.js') +import rlp = require('rlp') /** * [`BN`](https://github.com/indutny/bn.js)