Const
Validates or coerces a string to a Temporal.PlainYearMonth.
Accepts ISO 8601 year-month strings (e.g. 2023-01) or existing PlainYearMonth instances.
2023-01
PlainYearMonth
Includes JSON Schema metadata (pattern, description) so z.toJSONSchema() produces a correct JSON Schema.
pattern
description
z.toJSONSchema()
Validates or coerces a string to a Temporal.PlainYearMonth.
Accepts ISO 8601 year-month strings (e.g.
2023-01) or existingPlainYearMonthinstances.Includes JSON Schema metadata (
pattern,description) soz.toJSONSchema()produces a correct JSON Schema.