Const
Validates that the value is an instance of Temporal.Duration.
Unlike zDuration, this does not coerce strings. Use this when you expect a pre-parsed Temporal.Duration instance.
Temporal.Duration
Includes JSON Schema metadata so z.toJSONSchema() produces a correct JSON Schema.
z.toJSONSchema()
Validates that the value is an instance of Temporal.Duration.
Unlike zDuration, this does not coerce strings. Use this when you expect a pre-parsed
Temporal.Durationinstance.Includes JSON Schema metadata so
z.toJSONSchema()produces a correct JSON Schema.