Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/zod/external.ts>ZodTransformer

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

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"]>