BigInt
Example
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`.}
Playground
Validators
gte
Greater than or equal to value
.
p.string().gte(5n);
gt
Greater than value
.
p.string().gt(5n);
lte
Less than or equal to value
.
p.string().lte(5n);
lt
Less than value
.
p.string().lt(5n);