# @types/merge-stream

> TypeScript definitions for merge-stream

Latest version **2.0.0** (published 2024-09-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/merge-stream
pnpm add @types/merge-stream
yarn add @types/merge-stream
bun add @types/merge-stream
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2024-09-27 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51448 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/merge-stream
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/merge-stream
- npm.io page: https://npm.io/package/@types/merge-stream

## Dependencies (1)

- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 2.0.0 (latest) — 2024-09-27
- 1.1.5 (ts4.7) — 2023-11-21
- 1.1.2 (ts3.5) — 2018-07-16
- 1.1.4 — 2023-11-07
- 1.1.3 — 2023-10-18
- 1.1.1 — 2018-06-21
- 1.1.0 — 2017-12-21
- 1.0.28 — 2016-09-19
- 1.0.27 — 2016-07-14
- 1.0.26-alpha — 2016-07-08
- 1.0.25-alpha — 2016-07-04
- 1.0.24-alpha — 2016-07-02
- 1.0.23-alpha — 2016-07-01
- 1.0.22-alpha — 2016-07-01
- 1.0.21-alpha — 2016-05-25
- … 3 more at https://npm.io/package/@types/merge-stream/versions

## README

# 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.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/merge-stream/index.d.ts)
````ts
/// <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](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Keita Kagurazaka](https://github.com/k-kagurazaka), [Tom X. Tobin](https://github.com/tomxtobin), [Daniel Zazula](https://github.com/daniel-zazula), and [Daniel Cassidy](https://github.com/djcsdy).

---
_Source: https://npm.io/package/@types/merge-stream · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
