Class ZodEffects<T, Output, Input>

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

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

Alias of safeParseAsync

create: <I extends ZodType<any, any, any, I>>(
    schema: I,
    effect: Effect<I["_output"]>,
    params?: RawCreateParams,
) => ZodEffects<I, I["_output"], input<I>>
createWithPreprocess: <I extends ZodType<any, any, any, I>>(
    preprocess: (arg: unknown, ctx: RefinementCtx) => unknown,
    schema: I,
    params?: RawCreateParams,
) => 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 Output

  • Parameters

    Returns Promise<Output>

  • Returns T