Core
struct.bigint
Struct that accepts a bigint or a bigint string and outputs a bigint.
@defjs/core · Function
Signature
function bigint(): Struct<bigint | string, bigint>;
-
Accepts a
bigint, or a string thatBigInt()can parse. Anumberis rejected. -
Output is always a
bigint; an unparsable string fails withinvalid_type. -
When encoded for the wire, the value becomes a decimal string.