x/zod/index.ts

TypeScript-first schema validation with static type inference
Very Popular
Go to Latest
class ZodTransformer
extends ZodType<Output, ZodEffectsDef<T>, Input>
import { ZodTransformer } from "https://deno.land/x/zod@v3.17.3/index.ts?s=ZodTransformer";

Type Parameters

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

Methods

_parse(input: ParseInput): ParseReturnType<this["_output"]>[src]
innerType()[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) => unknown,
schema: I,
params?: RawCreateParams,
) => ZodEffects<I, I["_output"]>
[src]