From 38df25eaa63a43b730be5bda55ae9385995dfd0e Mon Sep 17 00:00:00 2001 From: HenryNguyen5 Date: Mon, 25 Jun 2018 13:29:59 -0400 Subject: [PATCH] Change isBN type return to type guard --- 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 7aa239d205..48f20ba429 100644 --- a/types/bn.js/index.d.ts +++ b/types/bn.js/index.d.ts @@ -62,7 +62,7 @@ declare class BN { /** * @description returns true if the supplied object is a BN.js instance */ - static isBN(b: any): boolean; + static isBN(b: any): b is BN; /** * @description Convert number to red