diff --git a/packages/hello/package.json b/packages/hello/package.json index a2f7076c..8cafe0eb 100644 --- a/packages/hello/package.json +++ b/packages/hello/package.json @@ -25,9 +25,9 @@ }, "homepage": "https://github.com/honojs/middleware", "peerDependencies": { - "hono": "^2.6.2" + "hono": "^2.7.2" }, "devDependencies": { - "hono": "^2.6.2" + "hono": "^2.7.2" } } \ No newline at end of file diff --git a/packages/hello/src/index.ts b/packages/hello/src/index.ts index 397711fb..439846de 100644 --- a/packages/hello/src/index.ts +++ b/packages/hello/src/index.ts @@ -1,6 +1,6 @@ -import type { Handler } from 'hono' +import type { MiddlewareHandler } from 'hono' -export const hello = (message: string = 'Hello!'): Handler => { +export const hello = (message: string = 'Hello!'): MiddlewareHandler => { return async (c, next) => { await next() c.res.headers.append('X-Message', message)