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
Very Popular
Go to Latest
function z.custom
import { z } from "https://deno.land/x/zod@v3.23.6/index.ts";
const { custom } = z;

Parameters

optional
check: (data: any) => any
optional
params: string | CustomParams | ((input: any) => CustomParams) = [UNSUPPORTED]
optional
fatal: boolean