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
Data
Result

Greater than or equal to value.

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

Greater than value.

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

Less than or equal to value.

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

Less than value.

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