@polkadot/util
Version:
A collection of useful utilities for @polkadot
14 lines (13 loc) • 318 B
TypeScript
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 {};