Creates an unsigned 64-bit integer Relish value using JavaScript BigInt.
Use this for large integers beyond JavaScript's safe integer range (2^53-1).
BigInt in range 0-18446744073709551615
RelishU64 value
Error if value is out of range
import { U64 } from '@grounds/core';const valid = U64(BigInt('9007199254740992'));const max = U64(BigInt('18446744073709551615'));const zero = U64(0n);// Runtime errors:// U64(-1n) // Error: out of range// U64(BigInt('18446744073709551616')) // Error: out of range Copy
import { U64 } from '@grounds/core';const valid = U64(BigInt('9007199254740992'));const max = U64(BigInt('18446744073709551615'));const zero = U64(0n);// Runtime errors:// U64(-1n) // Error: out of range// U64(BigInt('18446744073709551616')) // Error: out of range
Creates an unsigned 64-bit integer Relish value using JavaScript BigInt.
Use this for large integers beyond JavaScript's safe integer range (2^53-1).