Skip to content

Commit 9fff5f5

Browse files
committed
bugfix(node): Fix incorrect type of MiddlewareHandler
1 parent e1c4367 commit 9fff5f5

File tree

1 file changed

+1
-1
lines changed
  • packages/node/src/integrations/tracing/hono

1 file changed

+1
-1
lines changed

packages/node/src/integrations/tracing/hono/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export type Next = () => Promise<void>;
1515
export type Handler = (c: Context, next: Next) => Promise<Response> | Response;
1616

1717
// Vendored from: https://github.com/honojs/hono/blob/855e5b1adbf685bf4b3e6b76573aa7cb0a108d04/src/types.ts#L80
18-
export type MiddlewareHandler = (c: Context, next: Next) => Promise<Response | void> | Response | void;
18+
export type MiddlewareHandler = (c: Context, next: Next) => Promise<Response | void>;
1919

2020
// Vendored from: https://github.com/honojs/hono/blob/855e5b1adbf685bf4b3e6b76573aa7cb0a108d04/src/types.ts#L109
2121
export type HandlerInterface = {

0 commit comments

Comments
 (0)