mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-23 14:18:11 +00:00
fix(media): accept reader read result type
This commit is contained in:
committed by
Vincent Koc
parent
def4b221d9
commit
a7e5c7c18b
@@ -1,7 +1,7 @@
|
||||
async function readChunkWithIdleTimeout(
|
||||
reader: ReadableStreamDefaultReader<Uint8Array>,
|
||||
chunkTimeoutMs: number,
|
||||
): Promise<ReadableStreamReadResult<Uint8Array>> {
|
||||
): Promise<Awaited<ReturnType<typeof reader.read>>> {
|
||||
let timeoutId: ReturnType<typeof setTimeout> | undefined;
|
||||
let timedOut = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user