Hierarchy (View Summary)

Constructors

Properties

_input: Date
_output: Date
_type: Date
spa: (
    data: unknown,
    params?: Partial<ParseParams>,
) => Promise<SafeParseReturnType<Date, Date>>

Alias of safeParseAsync

create: (
    params?: {
        description?: string;
        errorMap?: ZodErrorMap;
        invalid_type_error?: string;
        message?: string;
        required_error?: string;
    } & { coerce?: boolean },
) => ZodDate

Accessors

  • get description(): undefined | string
  • Returns undefined | string

  • get maxDate(): null | Date
  • Returns null | Date

  • get minDate(): null | Date
  • Returns null | Date

Methods

  • Parameters

    Returns string

  • Type Parameters

    • B extends string | number | symbol

    Parameters

    • Optionalbrand: B

    Returns ZodBranded<ZodDate, B>

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean

  • Parameters

    • maxDate: Date
    • Optionalmessage: ErrMessage

    Returns ZodDate

  • Parameters

    • minDate: Date
    • Optionalmessage: ErrMessage

    Returns ZodDate

  • Parameters

    Returns Date

  • Parameters

    Returns Promise<Date>