ix
Version:
The Interactive Extensions for JavaScript
12 lines (11 loc) • 659 B
TypeScript
/// <reference types="node" />
import { ReadableOptions } from 'stream';
import { IterableReadable } from '../../iterable/tonodestream.js';
import { BufferLike, UnaryFunction } from '../../interfaces.js';
export declare function toNodeStream<TSource>(): UnaryFunction<Iterable<TSource>, IterableReadable<TSource>>;
export declare function toNodeStream<TSource>(options: ReadableOptions & {
objectMode: true;
}): UnaryFunction<Iterable<TSource>, IterableReadable<TSource>>;
export declare function toNodeStream<TSource extends BufferLike>(options: ReadableOptions & {
objectMode: false;
}): UnaryFunction<Iterable<TSource>, IterableReadable<TSource>>;