Skip to main content
Module

x/zod/index.ts>z.ZodEffects

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

Type Parameters

T extends ZodTypeAny
optional
Output = T["_output"]
optional
Input = T["_input"]

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>