UNPKG

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

18 lines (17 loc) 746 B
import type { FlowSource } from "./FlowSource"; /** * return a transform stream that concats streams from sources * don't get confused with mergeStream * concats : returns a TransformStream, which also concats upstream * concatStream: returns a ReadableStream, which doesnt have upstream */ export declare const concats: { <T>(streams?: FlowSource<FlowSource<T>>): TransformStream<T, T>; }; /** * return a readable stream that concats streams from sources * don't get confused with concats * concatStream: returns a ReadableStream, which doesnt have upstream * concats : returns a TransformStream, which also concats upstream */ export declare const concatStream: <T>(srcs?: FlowSource<FlowSource<T>>) => ReadableStream<T>;