From 9b35f7c2f65e5fed91e600992e1d937d3036ae15 Mon Sep 17 00:00:00 2001 From: Garrett Stevens Date: Wed, 15 Dec 2021 14:19:33 -0700 Subject: [PATCH] Specify `nodeUnzip`'s return type --- src/unzip.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unzip.ts b/src/unzip.ts index 8ab6df0..e2e1907 100644 --- a/src/unzip.ts +++ b/src/unzip.ts @@ -5,7 +5,7 @@ import { pakoUnzip, unzipChunk, unzipChunkSlice } from './unzip-pako' const gunzip = promisify(zlib.gunzip) // in node, just use the native unzipping with Z_SYNC_FLUSH -function nodeUnzip(input: Buffer) { +function nodeUnzip(input: Buffer): Promise { //@ts-ignore return gunzip(input, { finishFlush: (zlib.constants || zlib).Z_SYNC_FLUSH,