class ZodFunction
extends ZodType<OuterTypeOfFunction<Args, Returns>, ZodFunctionDef<Args, Returns>, InnerTypeOfFunction<Args, Returns>>
import { ZodFunction } from "https://dotland.deno.dev/x/zod@v3.17.10/external.ts";
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): ReturnType<F> extends Returns["_output"] ? (...args: Args["_input"]) => ReturnType<F> : OuterTypeOfFunction<Args, Returns>
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,