UNPKG

@naturalcycles/nodejs-lib

Version:
9 lines (8 loc) 389 B
/// <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>;