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<ParseParams>,
) => Promise<SafeParseReturnType<Input, Output>>

Alias of safeParseAsync

Accessors

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

Methods

  • Parameters

    Returns string

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean

  • Parameters

    Returns Output

  • Parameters

    Returns Promise<Output>