class zod.z.ZodFunction
extends ZodType<OuterTypeOfFunction<Args, Returns>, ZodFunctionDef<Args, Returns>, InnerTypeOfFunction<Args, Returns>>
import { zod } from "https://deno.land/x/cav@0.0.24/test/test_deps.ts";
const { ZodFunction } = zod.z;
Type Parameters
Args extends ZodTuple<any, any>
Returns extends ZodTypeAny
Methods
_parse(input: ParseInput): ParseReturnType<any>
args<Items extends Parameters<ZodTuple["create"]>[0]>(...items: Items): ZodFunction<ZodTuple<Items, ZodUnknown>, Returns>
implement<F extends InnerTypeOfFunction<Args, Returns>>(func: F): F
returns<NewReturnType extends ZodType<any, any>>(returnType: NewReturnType): ZodFunction<Args, NewReturnType>
Static Properties
create: <T extends ZodTuple<any, any> = ZodTuple<[], ZodUnknown>, U extends ZodTypeAny = ZodUnknown>() => ZodFunction<T, U>
args?: T,
returns?: U,
params?: RawCreateParams,