Class ZodPromise<T>

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

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

Alias of safeParseAsync

create: <T_1 extends Zod.z.ZodTypeAny>(
    schema: T_1,
    params?: Zod.z.RawCreateParams,
) => Zod.z.ZodPromise<T_1>

Accessors

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

Methods

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean

  • Parameters

    Returns Promise<T["_output"]>

  • Parameters

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

  • Returns T