mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
chore(lint): no-explicit-any in speech-download.e2e.test
This commit is contained in:
@@ -50,7 +50,7 @@ async function readAllChunks(
|
||||
stream: NodeJS.ReadableStream,
|
||||
): Promise<{ chunks: Buffer[]; combined: Buffer }> {
|
||||
const chunks: Buffer[] = [];
|
||||
for await (const chunk of stream as any) {
|
||||
for await (const chunk of stream as AsyncIterable<Buffer | string>) {
|
||||
chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));
|
||||
}
|
||||
return { chunks, combined: Buffer.concat(chunks) };
|
||||
|
||||
Reference in New Issue
Block a user