UNPKG

@types/stream-to-array

Version:
27 lines (19 loc) 1.07 kB
# Installation > `npm install --save @types/stream-to-array` # Summary This package contains type definitions for stream-to-array (https://github.com/stream-utils/stream-to-array). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stream-to-array. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stream-to-array/index.d.ts) ````ts /// <reference types="node" /> export = toArray; /** @deprecated use built-in `Readable.toArray` */ declare function toArray(this: NodeJS.ReadableStream, callback?: (err: any, arr: any[]) => void): Promise<any[]>; declare function toArray(stream: NodeJS.ReadableStream, callback?: (err: any, arr: any[]) => void): Promise<any[]>; ```` ### Additional Details * Last updated: Tue, 07 Nov 2023 20:08:00 GMT * Dependencies: [@types/node](https://npmjs.com/package/@types/node) # Credits These definitions were written by [Bart van der Schoor](https://github.com/Bartvds), and [BendingBender](https://github.com/BendingBender).