@types/merge-stream
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

Installation

npm install --save @types/merge-stream

Summary

This package contains type definitions for merge-stream (https://github.com/grncdr/merge-stream).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/merge-stream.

/// <reference types="node"/>

interface MergedStream extends NodeJS.ReadWriteStream {
    /**
     * A method to dynamically add more sources to the stream. The argument supplied to add can be
     * either a source or an array of sources.
     */
    add(source: NodeJS.ReadableStream | readonly NodeJS.ReadableStream[]): MergedStream;

    /**
     * A method that tells you if the merged stream is empty.
     */
    isEmpty(): boolean;
}

declare function merge<T extends NodeJS.ReadableStream>(...streams: Array<T | readonly T[]>): MergedStream;
export = merge;

Additional Details

  • Last updated: Fri, 27 Sep 2024 16:40:34 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Keita Kagurazaka, Tom X. Tobin, Daniel Zazula, and Daniel Cassidy.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/merge-stream

Weekly Downloads

33,200

Version

2.0.0

License

MIT

Unpacked Size

4.39 kB

Total Files

5

Last publish

Collaborators

  • types