ts-type-forge
    Preparing search index...

    Type Alias BigUint64

    BigUint64: ExtendBrand<ChangeBaseBrand<Int, bigint>, "BigUint64">

    Branded bigint type for 64-bit unsigned integers. Represents values that can be stored in a BigUint64Array.

    const toBigUint64 = (x: bigint): BigUint64 => {
    const max = 2n ** 64n - 1n;
    if (x >= 0n && x <= max) return x as BigUint64;
    throw new Error('Out of BigUint64 range');
    };