From ee116c70dbbc4be09ddc89274a477b59bb26ce26 Mon Sep 17 00:00:00 2001 From: Shaun Cutts Date: Wed, 28 Jun 2017 02:08:51 -0400 Subject: [PATCH] pipe() not just fs.WriteStream and express.Response I believe (in keeping with stream.Transform) that it should be possible to pipe to any Writable... no need to depend on express? --- types/archiver/index.d.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/types/archiver/index.d.ts b/types/archiver/index.d.ts index 2e4b1063ff..1ceffb18f9 100644 --- a/types/archiver/index.d.ts +++ b/types/archiver/index.d.ts @@ -15,9 +15,7 @@ /// -import * as fs from 'fs'; import * as stream from 'stream'; -import * as express from 'express'; import * as glob from 'glob'; declare function archiver(format: archiver.Format, options?: archiver.ArchiverOptions): archiver.Archiver; @@ -46,7 +44,7 @@ declare namespace archiver { glob(pattern: string, options?: glob.IOptions, data?: EntryData): this; finalize(): this; - pipe(stream: fs.WriteStream | express.Response): void; + pipe(stream: stream.Writable): void; setFormat(format: string): this; setModule(module: Function): this;