Skip to content

Commit

Permalink
fix(stream): declare Stream.controller as public (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored and rattrayalex committed Aug 26, 2023
1 parent dcdf5e5 commit ff33a89
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 @@ -12,9 +12,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 ff33a89

Please sign in to comment.