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

x/hono/middleware/validator/index.ts>validator

Ultrafast web framework for Cloudflare Workers, Deno, and Bun. Fast, but not only fast.
Extremely Popular
Go to Latest
variable validator
import { validator } from "https://deno.land/x/hono@v2.6.2/middleware/validator/index.ts";

type

<P extends string, E extends Partial<Environment> = Environment, S = unknown>(validationFunction: ValidationFunction<P, E, S>, options?: { done?: Done<P, E>; }) => unknown