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

    • refinement: ((arg, ctx) => any)
        • (arg, ctx): any
        • Parameters

          Returns any

    Returns ZodEffects<ZodPromise<T>, Promise<T["_output"]>, Promise<T["_input"]>>

  • Parameters

    • def: Promise<T["_output"]>

    Returns ZodCatch<ZodPromise<T>>

  • Parameters

    • def: ((ctx) => Promise<T["_output"]>)
        • (ctx): Promise<T["_output"]>
        • Parameters

          • ctx: {
                error: ZodError<any>;
                input: Promise<T["_input"]>;
            }
            • error: ZodError<any>
            • input: Promise<T["_input"]>

          Returns Promise<T["_output"]>

    Returns ZodCatch<ZodPromise<T>>

  • 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