Skip to content

Commit

Permalink
fix(stream): declare Stream.controller as public (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored Aug 25, 2023
1 parent d8d7c05 commit 81e5de7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/streaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@ type ServerSentEvent = {
};

export class Stream<Item> implements AsyncIterable<Item> {
controller: AbortController;

private response: Response;
private decoder: SSEDecoder;

constructor(private response: Response, private controller: AbortController) {
constructor(response: Response, controller: AbortController) {
this.response = response;
this.controller = controller;
this.decoder = new SSEDecoder();
}

Expand Down

0 comments on commit 81e5de7

Please sign in to comment.