refineDate()
refineDate(
schema,refinement):DateSchema
Adds a refinement to a date schema. Preserves coercion from the base schema. Returns a base DateSchema - the caller is responsible for adding constraints.
Parameters
schema: DateSchema | DateConstraint
refinement: (value) => string | true
Returns: DateSchema
Since
2.0.0