Class ZodPromise<T>

Type Parameters

Hierarchy (view full)

Constructors

Properties

_input: Promise<T["_input"]>
_output: Promise<T["_output"]>
_type: Promise<T["_output"]>
spa: ((data, params?) => Promise<SafeParseReturnType<Promise<T["_input"]>, Promise<T["_output"]>>>)

Alias of safeParseAsync

Type declaration

create: (<T_1>(schema, params?) => ZodPromise<T_1>)

Type declaration

Accessors

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

Methods

  • Parameters

    Returns string

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean

  • Parameters

    Returns Promise<T["_output"]>

  • Parameters

    Returns Promise<Promise<T["_output"]>>

  • Returns T

Generated using TypeDoc