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');}; Copy
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');};
Branded bigint type for 64-bit unsigned integers. Represents values that can be stored in a BigUint64Array.