Skip to main content
Module

x/hono/types.ts>OnHandlerInterface

Ultrafast web framework for the Edge
Extremely Popular
Go to Latest
interface OnHandlerInterface
import { type OnHandlerInterface } from "https://deno.land/x/hono@v3.0.1/types.ts";

Type Parameters

optional
E extends Env = Env
optional
S = { }

Call Signatures

<M extends string, P extends string, O = { }, I = { }>(
method: M,
path: P,
...handlers: [H<E, P, I, O>, H<E, P, I, O>],
): Hono<E, S & Schema<M, P, I, O>>
<M extends string, P extends string, O = { }, I = { }, I2 = I, I3 = I & I2>(
method: M,
path: P,
...handlers: [H<E, P, I, O>, H<E, P, I2, O>, H<E, P, I3, O>],
): Hono<E, S & Schema<M, P, I3, O>>
<M extends string, P extends string, O = { }, I = { }, I2 = I, I3 = I & I2, I4 = I2 & I3>(
method: M,
path: P,
...handlers:
[
H<E, P, I, O>,
H<E, P, I2, O>,
H<E, P, I3, O>,
H<E, P, I4, O>,
]
,
): Hono<E, S & Schema<M, P, I4, O>>
<M extends string, P extends string, O = { }, I = { }, I2 = I, I3 = I & I2, I4 = I2 & I3, I5 = I3 & I4>(
method: M,
path: P,
...handlers:
[
H<E, P, I, O>,
H<E, P, I2, O>,
H<E, P, I3, O>,
H<E, P, I4, O>,
H<E, P, I5, O>,
]
,
): Hono<E, S & Schema<M, P, I5, O>>
<M extends string, P extends string, O extends { } = { }, I = { }>(
method: M,
path: P,
...handlers: H<E, P, I, O>[],
): Hono<E, S & Schema<M, P, I, O>>
<P extends string, O extends { } = { }, I = { }>(
methods: string[],
path: P,
...handlers: H<E, P, I, O>[],
): Hono<E, S & Schema<string, P, I, O>>