1 | // Type definitions for merge-stream 1.1
|
2 | // Project: https://github.com/grncdr/merge-stream
|
3 | // Definitions by: Keita Kagurazaka <https://github.com/k-kagurazaka>
|
4 | // Tom X. Tobin <https://github.com/tomxtobin>
|
5 | // Daniel Zazula <https://github.com/daniel-zazula>
|
6 | // Daniel Cassidy <https://github.com/djcsdy>
|
7 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
8 |
|
9 | /// <reference types="node"/>
|
10 |
|
11 | interface MergedStream extends NodeJS.ReadWriteStream {
|
12 | add(source: NodeJS.ReadableStream | ReadonlyArray<NodeJS.ReadableStream>): MergedStream;
|
13 | isEmpty(): boolean;
|
14 | }
|
15 |
|
16 | declare function merge<T extends NodeJS.ReadableStream>(...streams: Array<T | ReadonlyArray<T>>): MergedStream;
|
17 | export = merge;
|