API reference › @evolu/common › Type › UInt64
const UInt64: brand(
"UInt64",
BigInt,
(value) =>
globalThis.BigInt.asUintN(64, value) === value
? ok()
: err<UInt64Error>({ type: "UInt64", value }),
(error) =>
The value ${safelyStringifyUnknownValue(error.value)} is not a valid unsigned 64-bit integer (UInt64).,
) ;
Defined in: packages/common/src/Type.ts:5102
Unsigned 64-bit BigInt.