Skip to content

Commit

Permalink
refactor: model hono types more accurately (#736)
Browse files Browse the repository at this point in the history
  • Loading branch information
KnorpelSenf authored Jan 2, 2025
1 parent ccf94e4 commit b04bfee
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/convenience/frameworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,8 @@ export type HonoAdapter = (c: {
json: <T>() => Promise<T>;
header: (header: string) => string | undefined;
};
body: (
data: string | ArrayBuffer | ReadableStream,
// deno-lint-ignore no-explicit-any
arg?: any,
headers?: Record<string, string | string[]>,
) => Response;
body(data: string): Response;
body(data: null, status: 204): Response;
// deno-lint-ignore no-explicit-any
status: (status: any) => void;
json: (json: string) => Response;
Expand Down

0 comments on commit b04bfee

Please sign in to comment.