UNPKG

449 BTypeScriptView Raw
1/// <reference types="bn.js" />
2import { BN } from '../bn/bn.js';
3/**
4 * @name isBn
5 * @summary Tests for a `BN` object instance.
6 * @description
7 * Checks to see if the input object is an instance of `BN` (bn.js).
8 * @example
9 * <BR>
10 *
11 * ```javascript
12 * import BN from 'bn.js';
13 * import { isBn } from '@polkadot/util';
14 *
15 * console.log('isBn', isBn(new BN(1))); // => true
16 * ```
17 */
18export declare function isBn(value: unknown): value is BN;