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

x/hono/validator/index.ts>ValidationFunction

Fast, Lightweight, Web-standards
Extremely Popular
Go to Latest
type alias ValidationFunction
import { type ValidationFunction } from "https://deno.land/x/hono@v4.0.0-rc.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>