We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a4f257 commit e513fe7Copy full SHA for e513fe7
src/helper/streaming/sse.ts
@@ -58,7 +58,7 @@ const run = async (
58
}
59
60
61
-const contextStash = new WeakMap<ReadableStream, Context>()
+const contextStash: WeakMap<ReadableStream, Context> = new WeakMap<ReadableStream, Context>()
62
export const streamSSE = (
63
c: Context,
64
cb: (stream: SSEStreamingApi) => Promise<void>,
src/helper/streaming/stream.ts
@@ -1,7 +1,7 @@
1
import type { Context } from '../../context'
2
import { StreamingApi } from '../../utils/stream'
3
4
5
export const stream = (
6
7
cb: (stream: StreamingApi) => Promise<void>,
0 commit comments