vscode/build/lib/typings/event-stream.d.ts
Joao Moreno 59c4f24c48 gulp: beware of es.merge and empty arrays
fixes the internal builds
2015-11-21 14:40:41 +01:00

19 lines
728 B
TypeScript

declare module "event-stream" {
import { Stream } from 'stream';
import { ThroughStream } from 'through';
function merge(streams: Stream[]): ThroughStream;
function merge(...streams: Stream[]): ThroughStream;
function concat(...stream: Stream[]): ThroughStream;
function duplex(istream: Stream, ostream: Stream): ThroughStream;
function through(write?: (data: any) => void, end?: () => void,
opts?: {autoDestroy: boolean; }): ThroughStream;
function readArray<T>(array: T[]): ThroughStream;
function writeArray<T>(cb: (err:Error, array:T[]) => void): ThroughStream;
function mapSync<I,O>(cb: (data:I) => O): ThroughStream;
function map<I,O>(cb: (data:I, cb:(err?:Error, data?: O)=>void) => O): ThroughStream;
}