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

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

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

type

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