# @types/pump

> TypeScript definitions for pump

Latest version **1.1.3** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/pump
pnpm add @types/pump
yarn add @types/pump
bun add @types/pump
```

## 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 | 1.1.3 |
| Published | 2023-11-07 |
| First published | 2017-02-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51440 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 1.1.3 (latest) — 2023-11-07
- 1.1.1 (ts3.6) — 2021-02-22
- 1.1.0 (ts2.3) — 2019-05-13
- 1.1.2 — 2023-10-18
- 1.0.1 — 2017-03-30
- 1.0.0 — 2017-02-09

## README

# Installation
> `npm install --save @types/pump`

# Summary
This package contains type definitions for pump (https://github.com/mafintosh/pump).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pump.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pump/index.d.ts)
````ts
/// <reference types="node" />

declare function pump(streams: pump.Stream[], callback?: pump.Callback): pump.Stream;

// callback have to be passed as last argument
declare function pump(...streams: Array<pump.Stream | pump.Callback>): pump.Stream;

declare namespace pump {
    type Callback = (err?: Error) => any;
    type Stream = NodeJS.ReadableStream | NodeJS.WritableStream;
}

export = pump;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Tomek Łaziuk](https://github.com/tlaziuk), and [Jason Cordial](https://github.com/jcordial).

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