diff --git a/lib/sse.js b/lib/sse.js index 97f40fa..9aa56c1 100644 --- a/lib/sse.js +++ b/lib/sse.js @@ -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 diff --git a/types/sse.d.ts b/types/sse.d.ts index 80972c5..87b1951 100644 --- a/types/sse.d.ts +++ b/types/sse.d.ts @@ -45,7 +45,7 @@ export type SSEOptions = { /** * - headers */ - headers?: SSEHeader; + headers?: SSEHeaders; /** * - payload as a string */