DefinitelyTyped/types/arrayify-stream/index.d.ts
2020-06-12 13:54:21 -04:00

16 lines
500 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 { Readable } from 'stream';
/**
* Converts a Node readable stream into an array that is returned as a promise.
*/
declare function arrayifyStream(input: Readable): Promise<any[]>;
export = arrayifyStream;