Merge pull request #26068 from jermowery/patch-1

[unzip] Add stream.PassThrough as super interface
This commit is contained in:
Benjamin Lichtman
2018-05-31 15:35:16 -07:00
committed by GitHub
+3 -2
View File
@@ -4,6 +4,8 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
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;
}