Type Parameters

Hierarchy (View Summary)

Constructors

Properties

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

Alias of safeParseAsync

create: <T_1 extends ZodType<any, any, any, T_1>>(
    schema: T_1,
    params?: RawCreateParams,
) => ZodPromise<T_1>

Accessors

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

Methods

  • Parameters

    Returns string

  • Type Parameters

    • B extends string | number | symbol

    Parameters

    • Optionalbrand: B

    Returns ZodBranded<ZodPromise<T>, B>

  • Parameters

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

    Returns ZodCatch<ZodPromise<T>>

  • Parameters

    • def: (
          ctx: { error: ZodError<any>; input: Promise<T["_input"]> },
      ) => 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