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