Skip to main content
Deno 2 is finally 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@v3.0.0-rc.10/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