Module

x/hono/validator/validator.ts>ValidationFunction

Fast, Lightweight, Web-standards
Very Popular
Go to Latest
type alias ValidationFunction
import { type ValidationFunction } from "https://dotland.deno.dev/x/hono@v3.12.9/validator/validator.ts";

Type Parameters

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