@naturalcycles/nodejs-lib
Version:
Standard library for Node.js
9 lines (8 loc) • 389 B
TypeScript
/// <reference types="node" />
import { ReadableOptions } from 'stream';
import { ReadableTyped } from '../stream.model';
/**
* Convenience function to create a Readable that can be pushed into (similar to RxJS Subject).
* Push `null` to it to complete (similar to RxJS `.complete()`).
*/
export declare function readableCreate<T>(items?: T[], opt?: ReadableOptions): ReadableTyped<T>;