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

10 lines 1.09 kB
import type { Split } from "ts-toolbelt/out/String/Split"; export declare function csvFormats<S extends string>(header: S): TransformStream<Record<Split<S, ",">[number], string>, string>; export declare function csvFormats<S extends string[]>(header: S): TransformStream<Record<S[number], string>, string>; export declare function csvParses<S extends string>(header: S): TransformStream<string, Record<Split<S, ",">[number], string>>; export declare function csvParses<S extends string[]>(header: S): TransformStream<string, Record<S[number], string>>; export declare function tsvFormats<S extends string>(header: S): TransformStream<Record<Split<S, "\t">[number], string>, string>; export declare function tsvFormats<S extends string[]>(header: S): TransformStream<Record<S[number], string>, string>; export declare function tsvParses<S extends string>(header: S): TransformStream<string, Record<Split<S, "\t">[number], string>>; export declare function tsvParses<S extends string[]>(header: S): TransformStream<string, Record<S[number], string>>; //# sourceMappingURL=xsvStreams.d.ts.map