mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
16 lines
500 B
TypeScript
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;
|