Merge pull request #12894 from testerez/patch-2

archiver: append supports any readable stream
This commit is contained in:
Paul van Brenk
2016-11-29 13:32:52 -08:00
committed by GitHub
+1 -1
View File
@@ -32,7 +32,7 @@ declare namespace archiver {
export interface Archiver extends STREAM.Transform {
pipe(writeStream: FS.WriteStream): void;
append(source: FS.ReadStream | Buffer | string, name: nameInterface): void;
append(source: STREAM.Readable | Buffer | string, name: nameInterface): void;
directory(dirpath: string, destpath: nameInterface | string): void;
directory(dirpath: string, destpath: nameInterface | string, data: any | Function): void;