API reference › @evolu/common › Type › Int64
const Int64: brand(
"Int64",
BigInt,
(value) =>
globalThis.BigInt.asIntN(64, value) === value
? ok()
: err<Int64Error>({ type: "Int64", value }),
(error) =>
The value ${safelyStringifyUnknownValue(error.value)} is not a valid signed 64-bit integer (Int64).,
) ;
Defined in: packages/common/src/Type.ts:5076
Signed 64-bit BigInt.