Skip to main content
Module

x/zod/index.ts>ZodEffects

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
class ZodEffects
import { ZodEffects } from "https://deno.land/x/zod@v3.20.0/index.ts";

Type Parameters

T extends ZodTypeAny
optional
Output = output<T>
optional
Input = input<T>

Static Properties

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