mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-06 06:19:58 +08:00
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?
This commit is contained in:
4
types/archiver/index.d.ts
vendored
4
types/archiver/index.d.ts
vendored
@@ -15,9 +15,7 @@
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user