sflow
Version:
sflow is a powerful and highly-extensible library designed for processing and manipulating streams of data effortlessly. Inspired by the functional programming paradigm, it provides a rich set of utilities for transforming streams, including chunking, fil
6 lines (5 loc) • 383 B
TypeScript
import type { AsyncOrSync } from "ts-essentials";
/** unwrap promises of readable stream */
export declare function unpromises<T>(promise: AsyncOrSync<ReadableStream<T>>): ReadableStream<T>;
/** unwrap promises of readable stream */
export declare function unpromisesFn<Args extends any[], T>(fn: (...args: Args) => Promise<ReadableStream<T>>): (...args: Args) => ReadableStream<T>;