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

x/zod/types.ts>ZodFunction#implement

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
method ZodFunction.prototype.implement
import { ZodFunction } from "https://deno.land/x/zod@v3.22.4/types.ts";

Type Parameters

F extends InnerTypeOfFunction<Args, Returns>

Returns

ReturnType<F> extends Returns["_output"] ? (...args: Args["_input"]) => ReturnType<F> : OuterTypeOfFunction<Args, Returns>