# @types/async-iterable-stream

> TypeScript definitions for async-iterable-stream

Latest version **3.0.2** (published 2023-11-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/async-iterable-stream
pnpm add @types/async-iterable-stream
yarn add @types/async-iterable-stream
bun add @types/async-iterable-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 | 3.0.2 |
| Published | 2023-11-06 |
| First published | 2020-02-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 3.0.2 (latest) — 2023-11-06
- 3.0.0 (ts2.8) — 2020-02-05
- 3.0.1 — 2023-10-17

## README

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

declare abstract class AsyncIterableStream<T> implements AsyncIterator<T>, AsyncIterable<T> {
    next(timeout?: number): Promise<IteratorResult<T>>;
    once(timeout?: number): Promise<T>;
    abstract createAsyncIterator(timeout?: number): AsyncIterableStream.AsyncIterator<T>;
    createAsyncIterable(timeout?: number): AsyncIterable<T>;
    [Symbol.asyncIterator](): AsyncIterator<T>;
}

export = AsyncIterableStream;

declare namespace AsyncIterableStream {
    interface AsyncIterator<T> {
        next(): Promise<IteratorResult<T>>;
        return(): void;
    }
}

````

### Additional Details
 * Last updated: Mon, 06 Nov 2023 22:41:04 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Daniel Rose](https://github.com/DanielRose).

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