Skip to content

Commit

Permalink
Merge pull request #44 from vsantele/fix/SSEHeaders
Browse files Browse the repository at this point in the history
Update property header from SSE from string to SSEHeaders
  • Loading branch information
mpetazzoni committed Nov 13, 2023
2 parents 5de7cf1 + 4fd09ed commit 7723ab8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/sse.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ export { SSE };
*/
/**
* @typedef {Object} SSE
* @property {string} headers - headers
* @property {SSEHeaders} headers - headers
* @property {string} payload - payload as a string
* @property {string} method - HTTP Method
* @property {boolean} withCredentials - flag, if credentials needed
Expand Down
2 changes: 1 addition & 1 deletion types/sse.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export type SSEOptions = {
/**
* - headers
*/
headers?: SSEHeader;
headers?: SSEHeaders;
/**
* - payload as a string
*/
Expand Down

0 comments on commit 7723ab8

Please sign in to comment.