Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

custom

import { custom } from "https://esm.sh/zod@3.25.76/index.d.cts";
function custom<T>(
check?: (data: any) => any,
_params?: string | CustomParams | ((input: any) => CustomParams),
fatal?: boolean,
): ZodType<T, ZodTypeDef, T>;
§
custom<T>(check?: (data: any) => any, _params?: string | CustomParams | ((input: any) => CustomParams), fatal?: boolean): ZodType<T, ZodTypeDef, T>
[src]

§Type Parameters

§Parameters

§
check?: (data: any) => any optional
[src]
§
_params?: string | CustomParams | ((input: any) => CustomParams) optional
[src]
§
fatal?: boolean optional
[src]

§Return Type