Skip to content

Commit

Permalink
Merge pull request #367 from Codpoe/main
Browse files Browse the repository at this point in the history
  • Loading branch information
nksaraf authored Sep 13, 2024
2 parents cd26a8c + b2ff214 commit d5d1607
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-snails-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"vinxi": patch
---

fix: add partial for setResponseHeaders
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 @@ -625,10 +625,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 d5d1607

Please sign in to comment.