# @types/callback-to-async-iterator

> TypeScript definitions for callback-to-async-iterator

Latest version **1.1.7** (published 2023-11-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/callback-to-async-iterator
pnpm add @types/callback-to-async-iterator
yarn add @types/callback-to-async-iterator
bun add @types/callback-to-async-iterator
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.7 |
| Published | 2023-11-22 |
| First published | 2020-03-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | types |

## Links

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

## Recent versions

- 1.1.7 (latest) — 2023-11-22
- 1.1.4 (ts3.7) — 2021-10-29
- 1.1.3 (ts3.6) — 2021-07-08
- 1.1.6 — 2023-11-07
- 1.1.5 — 2023-10-17
- 1.1.2 — 2020-05-23
- 1.1.1 — 2020-05-14
- 1.1.0 — 2020-03-27

## README

# Installation
> `npm install --save @types/callback-to-async-iterator`

# Summary
This package contains type definitions for callback-to-async-iterator (https://github.com/withspectrum/callback-to-async-iterator#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/callback-to-async-iterator.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/callback-to-async-iterator/index.d.ts)
````ts
export interface AsyncifyOptions<T, R> {
    // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
    onClose?: ((arg: R) => void | T) | undefined;
    onError?: (() => Error) | undefined;
    buffering?: boolean | undefined;
}

export default function callbackToAsyncIterator<T, R = void>(
    listener: (callback: (message: T) => void) => Promise<R>,
    options?: AsyncifyOptions<T, R>,
): AsyncIterableIterator<T>;

````

### Additional Details
 * Last updated: Wed, 22 Nov 2023 00:24:48 GMT
 * Dependencies: none

# Credits
These definitions were written by [Zachary Svoboda](https://github.com/zacnomore), and [Affan Shahid](https://github.com/affanshahid).

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