UNPKG

stream-chain

Version:

Chain functions, generators, Node streams, and Web streams into a pipeline with backpressure support.

20 lines (15 loc) 682 B
import type {StringerWebStreamOptions} from '../../jsonl/stringerWebStream.js'; /** * Web-flavored JSONL stringer entry. Browser-safe. The factory returns a Web * `TransformStream` (objects in, JSONL text out); `stringer.asWebStream` is the * factory itself. */ declare function stringer(options?: StringerWebStreamOptions): TransformStream; declare namespace stringer { /** The JSONL stringer as a Web `TransformStream`. */ export function asWebStream(options?: StringerWebStreamOptions): TransformStream; } type JsonlStringerOptions = StringerWebStreamOptions; export default stringer; export {stringer, stringer as jsonlStringer}; export type {JsonlStringerOptions};