Skip to content

Commit

Permalink
fix: compile
Browse files Browse the repository at this point in the history
  • Loading branch information
KnorpelSenf committed Jan 1, 2025
1 parent 6f6fa78 commit a1b4aad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/convenience/frameworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export type HonoAdapter = (c: {
header: (header: string) => string | undefined;
};
body: (
data: string | ArrayBuffer | ReadableStream | null,
data: string | ArrayBuffer | ReadableStream,
// deno-lint-ignore no-explicit-any
arg?: any,
headers?: Record<string, string | string[]>,
Expand Down Expand Up @@ -390,14 +390,14 @@ const hono: HonoAdapter = (c) => {
update: c.req.json(),
header: c.req.header(SECRET_HEADER),
end: () => {
resolveResponse(c.body(null));
resolveResponse(c.body(""));
},
respond: (json) => {
resolveResponse(c.json(json));
},
unauthorized: () => {
c.status(401);
resolveResponse(c.body(null));
resolveResponse(c.body(""));
},
handlerReturn: new Promise<Response>((resolve) => {
resolveResponse = resolve;
Expand Down

0 comments on commit a1b4aad

Please sign in to comment.