diff --git a/deno_dist/types.ts b/deno_dist/types.ts index 1bd7bd32..293199b2 100644 --- a/deno_dist/types.ts +++ b/deno_dist/types.ts @@ -20,7 +20,7 @@ export type Env = { Variables?: Variables } -export type Next = () => Promise +export type Next = () => void | Promise export type Input = { in?: Partial @@ -46,7 +46,7 @@ export type MiddlewareHandler< E extends Env = any, P extends string = string, I extends Input = {} -> = (c: Context, next: Next) => Promise +> = (c: Context, next: Next) => Response | void | Promise export type H< E extends Env = any,