Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/hono/validator/index.ts>validator

Ultrafast web framework for the Edge
Very Popular
Go to Latest
variable validator
import { validator } from "https://deno.land/x/hono@v3.0.0-rc.12/validator/index.ts";

type

<T, P extends string, M extends string, U extends ValidationTypeByMethod<M>, V extends [K in U]: T, E extends Env = any>(type: U, validationFunc: (value: ValidationTypes[U], c: Context<E>) => T | Response | Promise<Response>) => MiddlewareHandler<E, P, V>