mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 05:20:24 +08:00
18 lines
627 B
TypeScript
18 lines
627 B
TypeScript
// Type definitions for into-stream 3.1
|
|
// Project: https://github.com/sindresorhus/into-stream
|
|
// Definitions by: BendingBender <https://github.com/BendingBender>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
/// <reference types="node" />
|
|
|
|
export = intoStream;
|
|
|
|
declare function intoStream(input: intoStream.Input | Promise<intoStream.Input>): NodeJS.ReadableStream;
|
|
|
|
declare namespace intoStream {
|
|
function obj(input: object | Iterable<object> | Promise<object | Iterable<object>>): NodeJS.ReadableStream;
|
|
|
|
type Input = Buffer | string | Iterable<Buffer | string>;
|
|
}
|