Skip to main content
Module

x/hono/validator/index.ts>validator

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

type

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