Skip to content

Commit e513fe7

Browse files
authored
fix(helper/streaming): remove slow types (#3100)
1 parent 2a4f257 commit e513fe7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/helper/streaming/sse.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const run = async (
5858
}
5959
}
6060

61-
const contextStash = new WeakMap<ReadableStream, Context>()
61+
const contextStash: WeakMap<ReadableStream, Context> = new WeakMap<ReadableStream, Context>()
6262
export const streamSSE = (
6363
c: Context,
6464
cb: (stream: SSEStreamingApi) => Promise<void>,

src/helper/streaming/stream.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Context } from '../../context'
22
import { StreamingApi } from '../../utils/stream'
33

4-
const contextStash = new WeakMap<ReadableStream, Context>()
4+
const contextStash: WeakMap<ReadableStream, Context> = new WeakMap<ReadableStream, Context>()
55
export const stream = (
66
c: Context,
77
cb: (stream: StreamingApi) => Promise<void>,

0 commit comments

Comments
 (0)