Module

x/hono/types.ts>MiddlewareHandlerInterface

Lightweight, Ultrafast, Web Standards
Extremely Popular
Go to Latest
interface MiddlewareHandlerInterface
import { type MiddlewareHandlerInterface } from "https://dotland.deno.dev/x/hono@v3.9.2/types.ts";

Type Parameters

optional
E extends Env = Env
optional
S extends Schema = { }
optional
BasePath extends string = "/"

Call Signatures

<E2 extends Env = E>(...handlers: MiddlewareHandler<E2, MergePath<BasePath, ExtractKey<S>>>[]): Hono<E, S, BasePath>
<P extends string, E2 extends Env = E>(path: P, ...handlers: MiddlewareHandler<E2, MergePath<BasePath, P>>[]): Hono<E, S, BasePath>