0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-24 02:07:30 +01:00
This commit is contained in:
Yusuke Wada 2023-11-12 18:18:51 +09:00
parent b0f880d159
commit 864fae668c

View File

@ -20,7 +20,7 @@ export type Env = {
Variables?: Variables
}
export type Next = () => Promise<void>
export type Next = () => void | Promise<void>
export type Input = {
in?: Partial<ValidationTargets>
@ -46,7 +46,7 @@ export type MiddlewareHandler<
E extends Env = any,
P extends string = string,
I extends Input = {}
> = (c: Context<E, P, I>, next: Next) => Promise<Response | void>
> = (c: Context<E, P, I>, next: Next) => Response | void | Promise<Response | void>
export type H<
E extends Env = any,