Class ZodType<Output, Def, Input>Abstract

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

_def: Def
_input: Input
_output: Output
_type: Output
spa: (
    data: unknown,
    params?: Partial<Zod.z.ParseParams>,
) => Promise<Zod.z.SafeParseReturnType<Input, Output>>

Alias of safeParseAsync

Accessors

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

Methods

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean

  • Parameters

    Returns Promise<Output>