Skip to main content
Module

x/zod/mod.ts>z.custom

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

type

<T>(
check?: (data: unknown) => any,
params?: Parameters<ZodTypeAny["refine"]>[1],
fatal?: boolean,
) => ZodType<T>