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

x/hono/validator/index.ts>ValidationFunction

Ultrafast web framework for the Edges
Very Popular
Go to Latest
type alias ValidationFunction
import { type ValidationFunction } from "https://deno.land/x/hono@v3.4.3/validator/index.ts";

Type Parameters

InputType
OutputType
optional
E extends Env = { }
optional
P extends string = string
definition: (value: InputType, c: Context<E, P>) =>
| Promise<OutputType>
| Promise<Response>