We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
eventsource
1 parent 1214abb commit 627d1beCopy full SHA for 627d1be
index.ts
@@ -3,7 +3,7 @@ import { fetch as undiciFetch, EnvHttpProxyAgent } from "undici";
3
import {
4
EventSource,
5
type FetchLike,
6
- type FetchLikeInit,
+ type EventSourceFetchInit,
7
type ErrorEvent,
8
} from "eventsource";
9
import url from "node:url";
@@ -106,7 +106,7 @@ class Client {
106
start() {
107
const customFetch: FetchLike = (
108
url: string | URL,
109
- options?: FetchLikeInit,
+ options?: EventSourceFetchInit,
110
) => {
111
return this.#fetch(url, {
112
...options,
0 commit comments