date
Summary
Coerce input into a Date.
Accepts:
- valid
Dateinstances - date strings supported by
new Date(value)
Signature
function date(): Schema<unknown, Date>;
Returns
A schema that produces a Date
Coerce input into a Date.
Accepts:
Date instancesnew Date(value)function date(): Schema<unknown, Date>;
A schema that produces a Date