Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/hono/validator/validator.ts>Validator

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

Properties

array: <T extends Schema>(path: string, validator: (v: Validator) => T) => VArray<T>
body: (key: string) => VString
header: (key: string) => VString
isArray: boolean
json: (key: string) => unknown
object: <T extends Schema>(path: string, validator: (v: Validator) => T) => VObject<T>
queries: (key: string) => VStringArray
query: (key: string) => VString