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

x/hono/mod.ts>HonoRequest#valid

Ultrafast web framework for the Edges
Extremely Popular
Go to Latest
method HonoRequest.prototype.valid
import { HonoRequest } from "https://deno.land/x/hono@v3.1.4/mod.ts";

Type Parameters

optional
T extends keyof ValidationTargets = I extends Record<infer R, unknown> ? R extends keyof ValidationTargets ? R : never : never

Parameters

target: T

Returns

InputToDataByTarget<I, T>

Returns

never