Skip to content

Commit 627d1be

Browse files
committed
fix: adapt for changes in eventsource v4
1 parent 1214abb commit 627d1be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { fetch as undiciFetch, EnvHttpProxyAgent } from "undici";
33
import {
44
EventSource,
55
type FetchLike,
6-
type FetchLikeInit,
6+
type EventSourceFetchInit,
77
type ErrorEvent,
88
} from "eventsource";
99
import url from "node:url";
@@ -106,7 +106,7 @@ class Client {
106106
start() {
107107
const customFetch: FetchLike = (
108108
url: string | URL,
109-
options?: FetchLikeInit,
109+
options?: EventSourceFetchInit,
110110
) => {
111111
return this.#fetch(url, {
112112
...options,

0 commit comments

Comments
 (0)