From 864fae668c7505e523cfe9d57e4e0778ddaa2fe5 Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Sun, 12 Nov 2023 18:18:51 +0900 Subject: [PATCH] denoify --- deno_dist/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,