UNPKG

for-emit-of

Version:

Turn Node.js Events into Async Iterables

5 lines (4 loc) 246 B
import { Options, SuperEmitter } from "./types"; declare function forEmitOf<T = any>(emitter: SuperEmitter): AsyncIterable<T>; declare function forEmitOf<T = any>(emitter: SuperEmitter, options: Options<T>): AsyncIterable<T>; export = forEmitOf;