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

x/zod/mod.ts>z.ZodFunction#implement

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

Type Parameters

F extends InnerTypeOfFunction<Args, Returns>

Returns

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