From 42793de6e993866a094b4989b2b45b9332e39b25 Mon Sep 17 00:00:00 2001 From: Tom Esterez Date: Wed, 23 Nov 2016 23:59:26 -0500 Subject: [PATCH] archiver: append supports any readable stream source can actually be any type of stream not only `FS.ReadStream` See: https://archiverjs.com/docs/Archiver.html#append --- archiver/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archiver/index.d.ts b/archiver/index.d.ts index f11d0070ef..ea117239ac 100644 --- a/archiver/index.d.ts +++ b/archiver/index.d.ts @@ -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;