Skip to content

Commit c3d1c8a

Browse files
committed
deps: add explicit typing information
1 parent 6cdd182 commit c3d1c8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/shared/utilities/zipStream.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import crypto from 'crypto'
77
import { readFileAsString } from '../filesystemUtilities'
88

99
// @ts-ignore
10-
import { ZipWriter, TextReader, ZipReader, Uint8ArrayReader, EntryMetaData } from '@zip.js/zip.js'
10+
import { ZipWriter, TextReader, ZipReader, Uint8ArrayReader, EntryMetaData, Entry } from '@zip.js/zip.js'
1111
import { getLogger } from '../logger/logger'
1212
import fs from '../fs/fs'
1313

@@ -171,7 +171,7 @@ export class ZipStream {
171171
return result
172172
}
173173

174-
public static async unzip(zipBuffer: Buffer) {
174+
public static async unzip(zipBuffer: Buffer): Promise<Entry[]> {
175175
const reader = new ZipReader(new Uint8ArrayReader(new Uint8Array(zipBuffer)))
176176
try {
177177
return await reader.getEntries()

0 commit comments

Comments
 (0)