From 9d5618e28228fb095edcab48d0afc1689c183f5a Mon Sep 17 00:00:00 2001 From: micahriggan Date: Thu, 25 Oct 2018 21:32:39 -0400 Subject: [PATCH] Constructor accepts 'hex' as a base Currently the typings say base can only be a number https://github.com/indutny/bn.js/blob/24cc2dd51b58694088a637a314689f61c9ba65a4/lib/bn.js#L85 --- types/bn.js/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/bn.js/index.d.ts b/types/bn.js/index.d.ts index 8c0bc8dd5f..db4c9f8b9e 100644 --- a/types/bn.js/index.d.ts +++ b/types/bn.js/index.d.ts @@ -45,7 +45,7 @@ interface ReductionContext { declare class BN { constructor( number: number | string | number[] | Buffer | BN, - base?: number, + base?: number | 'hex', endian?: Endianness ); constructor(