mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
Merge pull request #26068 from jermowery/patch-1
[unzip] Add stream.PassThrough as super interface
This commit is contained in:
Vendored
+3
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user