Skip to content

Commit

Permalink
fix: header and json type modelling
Browse files Browse the repository at this point in the history
  • Loading branch information
KnorpelSenf committed Jan 29, 2025
1 parent 317e797 commit f88172b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/convenience/frameworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ export type AzureAdapter = (context: {
};
}, request: { body?: unknown }) => ReqResHandler;
export type AzureAdapterV4 = (
request: { headers: Headers; json(): Promise<Update> },
request: {
headers: { get(name: string): string | null };
json(): Promise<unknown>;
},
) => ReqResHandler<{ status: number; body?: string } | { jsonBody: string }>;

export type BunAdapter = (request: {
Expand Down

0 comments on commit f88172b

Please sign in to comment.