mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 03:39:08 +08:00
explicit type declar for gzip
This commit is contained in:
parent
6848c82c72
commit
bd8f5fd5d4
@ -80,7 +80,7 @@ export async function createGZipFileInBuffer(
|
||||
const gzip = zlib.createGzip()
|
||||
inputStream.pipe(gzip)
|
||||
// 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) {
|
||||
chunks.push(chunk)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user