mirror of
https://github.com/honojs/hono.git
synced 2024-11-24 02:07:30 +01:00
denoify
This commit is contained in:
parent
b0f880d159
commit
864fae668c
@ -20,7 +20,7 @@ export type Env = {
|
|||||||
Variables?: Variables
|
Variables?: Variables
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Next = () => Promise<void>
|
export type Next = () => void | Promise<void>
|
||||||
|
|
||||||
export type Input = {
|
export type Input = {
|
||||||
in?: Partial<ValidationTargets>
|
in?: Partial<ValidationTargets>
|
||||||
@ -46,7 +46,7 @@ export type MiddlewareHandler<
|
|||||||
E extends Env = any,
|
E extends Env = any,
|
||||||
P extends string = string,
|
P extends string = string,
|
||||||
I extends Input = {}
|
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<
|
export type H<
|
||||||
E extends Env = any,
|
E extends Env = any,
|
||||||
|
Loading…
Reference in New Issue
Block a user