Files
Joachim Van Herwegen 369ecc5166 🤖 Merge PR #58821 arrayify-stream: Accept all EventEmitters instead of just Readables by @joachimvh
* Accept all EventEmitters

* Add EventEmitter tests
2022-02-16 23:51:46 -08:00

16 lines
508 B
TypeScript

// Type definitions for arrayify-stream 1.0
// Project: https://github.com/rubensworks/arrayify-stream.js#readme
// Definitions by: Joachim Van Herwegen <https://github.com/joachimvh>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
import { EventEmitter } from 'events';
/**
* Converts a Node readable stream into an array that is returned as a promise.
*/
declare function arrayifyStream(input: EventEmitter): Promise<any[]>;
export = arrayifyStream;