Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/pup/deps.ts>z.ZodDate

Universal process manager built in Deno
Go to Latest
class z.ZodDate
extends ZodType<Date, ZodDateDef>
import { z } from "https://deno.land/x/pup@1.0.0-beta.9/deps.ts";
const { ZodDate } = z;

Properties

readonly
maxDate
readonly
minDate

Methods

_addCheck(check: ZodDateCheck)
_parse(input: ParseInput): ParseReturnType<this["_output"]>
max(maxDate: Date, message?: errorUtil.ErrMessage)
min(minDate: Date, message?: errorUtil.ErrMessage)

Static Properties

create: (params?: RawCreateParams & { coerce?: boolean; }) => ZodDate