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

x/zod/index.ts>z.custom

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

type

<T>(
check?: (data: unknown) => any,
params?: string | CustomParams | ((input: any) => CustomParams),
fatal?: boolean,
) => ZodType<T>