Skip to content

Commit 2bdc07c

Browse files
committed
:shrug"
1 parent a1d1145 commit 2bdc07c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/graphql-yoga/__tests__/utilities.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import { Repeater } from '@repeaterjs/repeater';
44
/** Parse SSE event stream and yield data pieces. */
55
export function eventStream<TType = unknown>(source: ReadableStream<Uint8Array>) {
66
return new Repeater<TType>(async (push, end) => {
7-
const cancel: Promise<{ done: true }> = end.then(() => ({ done: true }));
7+
const cancel: Promise<{ done: true; value: undefined }> = end.then(() => ({
8+
done: true,
9+
value: undefined,
10+
}));
811
const iterable = source[Symbol.asyncIterator]();
912

1013
// eslint-disable-next-line no-constant-condition

0 commit comments

Comments
 (0)