Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ZodEffects

import { ZodEffects } from "https://esm.sh/zod@3.25.76/index.d.cts";
class ZodEffects<T extends ZodTypeAny, Output = output<T>, Input = input<T>> extends ZodType<Output, ZodEffectsDef<T>, Input> {
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
innerType(): T;
sourceType(): T;
 
static create: <I extends ZodTypeAny>(
schema: I,
effect: Effect<I["_output"]>,
params?: RawCreateParams,
) => ZodEffects<I, I["_output"]>
;
static createWithPreprocess: <I extends ZodTypeAny>(
preprocess: (arg: unknown, ctx: RefinementCtx) => unknown,
schema: I,
params?: RawCreateParams,
) => ZodEffects<I, I["_output"], unknown>
;
}

§Type Parameters

§
Output = output<T>
[src]
§
Input = input<T>
[src]

§Extends

§
ZodType<Output, ZodEffectsDef<T>, Input>
[src]

§Methods

§
_parse(input: ParseInput): ParseReturnType<this["_output"]>
[src]
§
innerType(): T
[src]
§
sourceType(): T
[src]

§Static Properties

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