Class ZodEffects<T, Output, Input>

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

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

Alias of safeParseAsync

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

Accessors

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

Methods

  • Parameters

    • description: string

    Returns this

  • Returns T

  • Returns boolean

  • Returns boolean

  • Returns T