mirror of
https://github.com/honojs/hono.git
synced 2024-11-24 19:26:56 +01:00
fix(helper/streaming): remove slow types (#3100)
This commit is contained in:
parent
2a4f257f36
commit
e513fe7c46
@ -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 = (
|
export const streamSSE = (
|
||||||
c: Context,
|
c: Context,
|
||||||
cb: (stream: SSEStreamingApi) => Promise<void>,
|
cb: (stream: SSEStreamingApi) => Promise<void>,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import type { Context } from '../../context'
|
import type { Context } from '../../context'
|
||||||
import { StreamingApi } from '../../utils/stream'
|
import { StreamingApi } from '../../utils/stream'
|
||||||
|
|
||||||
const contextStash = new WeakMap<ReadableStream, Context>()
|
const contextStash: WeakMap<ReadableStream, Context> = new WeakMap<ReadableStream, Context>()
|
||||||
export const stream = (
|
export const stream = (
|
||||||
c: Context,
|
c: Context,
|
||||||
cb: (stream: StreamingApi) => Promise<void>,
|
cb: (stream: StreamingApi) => Promise<void>,
|
||||||
|
Loading…
Reference in New Issue
Block a user