mirror of
https://github.com/honojs/hono.git
synced 2024-11-23 17:57:29 +01:00
denoify
This commit is contained in:
parent
b0f880d159
commit
864fae668c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user