diff --git a/types/unzip/index.d.ts b/types/unzip/index.d.ts index 8971ff28df..42bfacd973 100644 --- a/types/unzip/index.d.ts +++ b/types/unzip/index.d.ts @@ -4,6 +4,8 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// +import stream = require('stream'); + export function Extract(options: { path: string }): NodeJS.WritableStream; export function Parse(): NodeJS.WritableStream; @@ -24,10 +26,9 @@ export function Parse(): NodeJS.WritableStream; * }); * ``` */ -export interface Entry { +export interface Entry extends stream.PassThrough { path: string; type: 'Directory' | 'File'; size: number; - pipe: (stream: NodeJS.WritableStream) => void; autodrain: () => void; }