- custom<T>(
check?: (data: any) => any,
params?: string | CustomParams | (input: any) => CustomParams,
fatal?: boolean,
): ZodType<T, ZodTypeDef, T> Parameters
Optional
check: (data: any) => anyOptional
params: string | CustomParams | (input: any) => CustomParamsOptional
fatal: boolean
Deprecated
Pass
fatal
into the params object instead: