Skip to content

Commit

Permalink
fix: add partial for setResponseHeaders
Browse files Browse the repository at this point in the history
  • Loading branch information
Codpoe committed Sep 5, 2024
1 parent cb790e1 commit b4ff3df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vinxi/runtime/http-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -624,10 +624,10 @@ export function getResponseHeader(

export function setResponseHeaders(
event: HTTPEvent,
headers: Record<HTTPHeaderName, Parameters<OutgoingMessage["setHeader"]>[1]>,
headers: Partial<Record<HTTPHeaderName, Parameters<OutgoingMessage["setHeader"]>[1]>>,
): void;
export function setResponseHeaders(
headers: Record<HTTPHeaderName, Parameters<OutgoingMessage["setHeader"]>[1]>,
headers: Partial<Record<HTTPHeaderName, Parameters<OutgoingMessage["setHeader"]>[1]>>,
): void;

export const setHeaders: typeof setResponseHeaders;
Expand Down

0 comments on commit b4ff3df

Please sign in to comment.