1
0
Fork 0

add type to chunks

pull/1522/head
Bethany 2023-09-06 08:01:41 -07:00
parent c43f71bc5f
commit 400d7a5357
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ export async function createGZipFileInBuffer(
const gzip = zlib.createGzip() const gzip = zlib.createGzip()
inputStream.pipe(gzip) inputStream.pipe(gzip)
// read stream into buffer, using experimental async iterators see https://github.com/nodejs/readable-stream/issues/403#issuecomment-479069043 // read stream into buffer, using experimental async iterators see https://github.com/nodejs/readable-stream/issues/403#issuecomment-479069043
const chunks = [] const chunks: Uint8Array[] = []
for await (const chunk of gzip) { for await (const chunk of gzip) {
chunks.push(chunk) chunks.push(chunk)
} }