Instant
Example
Section titled “Example”import * as p from '@vbudovski/paseri';
const schema = p.instant();const data = Temporal.Instant.from('2020-01-01T00:00:00Z');
const result = schema.safeParse(data);if (result.ok) { // result.value typed as `Temporal.Instant`.}Playground
Section titled “Playground”Validators
Section titled “Validators”Instant on or after value.
p.instant().min(Temporal.Instant.from('2020-01-01T00:00:00Z'));Instant on or before value.
p.instant().max(Temporal.Instant.from('2020-01-01T00:00:00Z'));