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