Skip to content

Commit

Permalink
fix(helper/streaming): remove slow types (#3100)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe authored Jul 6, 2024
1 parent 2a4f257 commit e513fe7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/helper/streaming/sse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const run = async (
}
}

const contextStash = new WeakMap<ReadableStream, Context>()
const contextStash: WeakMap<ReadableStream, Context> = new WeakMap<ReadableStream, Context>()
export const streamSSE = (
c: Context,
cb: (stream: SSEStreamingApi) => Promise<void>,
Expand Down
2 changes: 1 addition & 1 deletion src/helper/streaming/stream.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Context } from '../../context'
import { StreamingApi } from '../../utils/stream'

const contextStash = new WeakMap<ReadableStream, Context>()
const contextStash: WeakMap<ReadableStream, Context> = new WeakMap<ReadableStream, Context>()
export const stream = (
c: Context,
cb: (stream: StreamingApi) => Promise<void>,
Expand Down

0 comments on commit e513fe7

Please sign in to comment.