Skip to content

Commit

Permalink
denoify
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe committed Nov 12, 2023
1 parent b0f880d commit 864fae6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deno_dist/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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,
Expand Down

0 comments on commit 864fae6

Please sign in to comment.