Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/cav/test/test_deps.ts>zod.ZodFunction

A server framework for Deno
Go to Latest
import { zod } from "https://deno.land/x/cav@0.0.24/test/test_deps.ts";
const { ZodFunction } = zod;

Type Parameters

Args extends ZodTuple<any, any>
Returns extends ZodTypeAny

Properties

validate

Methods

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>(
args?: T,
returns?: U,
params?: RawCreateParams,
) => ZodFunction<T, U>