Skip to content

BigInt

import * as p from '@vbudovski/paseri';
const schema = p.bigint();
const data = 456n;
const result = schema.safeParse(data);
if (result.ok) {
// result.value typed as `bigint`.
}
Schema
p.bigint()
Data
456n
Result

Greater than or equal to value.

p.bigint().gte(5n);

Greater than value.

p.bigint().gt(5n);

Less than or equal to value.

p.bigint().lte(5n);

Less than value.

p.bigint().lt(5n);