Module

x/zod/types.ts>ZodTransformer

TypeScript-first schema validation with static type inference
Very Popular
Go to Latest
class ZodTransformer
import { ZodTransformer } from "https://dotland.deno.dev/x/zod@v3.21.3/types.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>