Hierarchy (view full)

Constructors

Properties

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

Alias of safeParseAsync

Type declaration

create: ((params?) => ZodDate)

Type declaration

    • (params?): ZodDate
    • Parameters

      • Optional params: {
            description?: string;
            errorMap?: ZodErrorMap;
            invalid_type_error?: string;
            required_error?: string;
        } & {
            coerce?: boolean;
        }

      Returns 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

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean

  • Parameters

    • maxDate: Date
    • Optional message: ErrMessage

    Returns ZodDate

  • Parameters

    • minDate: Date
    • Optional message: ErrMessage

    Returns ZodDate

  • Parameters

    Returns Date

  • Parameters

    Returns Promise<Date>

Generated using TypeDoc