Skip to content

Commit 2405664

Browse files
committed
fix(internal): fix type error for fromSSEResponse call
1 parent 9cc6c55 commit 2405664

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/internal/parse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ export async function defaultParseResponse<T>(
2828
// that if you set `stream: true` the response type must also be `Stream<T>`
2929

3030
if (props.options.__streamClass) {
31-
return props.options.__streamClass.fromSSEResponse(response, props.controller, client) as any;
31+
return props.options.__streamClass.fromSSEResponse(response, props.controller) as any;
3232
}
3333

34-
return Stream.fromSSEResponse(response, props.controller, client) as any;
34+
return Stream.fromSSEResponse(response, props.controller) as any;
3535
}
3636

3737
// fetch refuses to read the body when the status code is 204.

0 commit comments

Comments
 (0)