Module

x/hono/types.ts>HandlerInterface

Ultrafast web framework for Cloudflare Workers, Deno, and Bun. Fast, but not only fast.
Extremely Popular
Go to Latest
interface HandlerInterface
import { type HandlerInterface } from "https://dotland.deno.dev/x/hono@v3.0.0-0/types.ts";

Type Parameters

optional
E extends Env = Env
optional
M extends string = string
optional
P extends string = string
optional
_I = any
optional
_O = unknown

Call Signatures

<I2, O2>(...handlers: Handler<E, { method: M; path: string; }, I2, O2>[]): Hono<E, { method: M; path: string; }, I2, O2>
(...handlers: Handler<any, any>[]): Hono
<I2, O2, Path extends string = P>(path: Path, ...handlers: Handler<E, { method: M; path: Path; }, I2, O2>[]): Hono<E, { method: M; path: Path; }, I2, O2>
<I2, O2, Path extends string>(path: Path, ...handlers: Handler<any, any, I2, O2>[]): Hono<E, { method: M; path: Path; }, I2, O2>