Class ZodEffects<T, Output, Input>

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

_input: Input
_output: Output
_type: Output
spa: (
    data: unknown,
    params?: Partial<z.ParseParams>,
) => Promise<z.SafeParseReturnType<Input, Output>>

Alias of safeParseAsync

create: <I extends z.ZodType<any, any, any, I>>(
    schema: I,
    effect: z.Effect<I["_output"]>,
    params?: z.RawCreateParams,
) => z.ZodEffects<I, I["_output"], z.input<I>>
createWithPreprocess: <I extends z.ZodType<any, any, any, I>>(
    preprocess: (arg: unknown, ctx: z.RefinementCtx) => unknown,
    schema: I,
    params?: z.RawCreateParams,
) => z.ZodEffects<I, I["_output"], unknown>

Accessors

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

Methods

  • Parameters

    Returns string

  • Parameters

    • description: string

    Returns this

  • Returns T

  • Returns boolean

  • Returns boolean

  • Parameters

    Returns Promise<Output>

  • Returns T