UNPKG

@polkadot/util

Version:
15 lines (14 loc) 350 B
/// <reference types="bn.js" /> import type { BN } from '../bn/bn.js'; interface Compact<T> { toBigInt(): bigint; toBn(): BN; toNumber(): number; unwrap(): T; } /** * @name isCompact * @summary Tests for SCALE-Compact-like object instance. */ export declare const isCompact: <T>(value?: unknown) => value is Compact<T>; export {};