UNPKG

@umijs/deps

Version:

[![Install size](https://badgen.net/packagephobia/install/@umijs/deps)](https://packagephobia.now.sh/result?p=@umijs/deps)

18 lines (14 loc) 758 B
// Type definitions for merge-stream 1.1 // Project: https://github.com/grncdr/merge-stream // Definitions by: Keita Kagurazaka <https://github.com/k-kagurazaka> // Tom X. Tobin <https://github.com/tomxtobin> // Daniel Zazula <https://github.com/daniel-zazula> // Daniel Cassidy <https://github.com/djcsdy> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// <reference types="node"/> interface MergedStream extends NodeJS.ReadWriteStream { add(source: NodeJS.ReadableStream | ReadonlyArray<NodeJS.ReadableStream>): MergedStream; isEmpty(): boolean; } declare function merge<T extends NodeJS.ReadableStream>(...streams: Array<T | ReadonlyArray<T>>): MergedStream; export = merge;