mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-15 09:37:52 +08:00
Change isBN type return to type guard
This commit is contained in:
2
types/bn.js/index.d.ts
vendored
2
types/bn.js/index.d.ts
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user