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 (9 loc) 1.02 kB
import type { Split } from "ts-toolbelt/out/String/Split"; export declare function csvFormats<S extends string>(header: S): TransformStream<Record<Split<S, ",">[number], any>, string>; export declare function csvFormats<S extends string[]>(header: S): TransformStream<Record<S[number], any>, string>; export declare function csvParses<S extends string>(header: S): TransformStream<string, Record<Split<S, ",">[number], any>>; export declare function csvParses<S extends string[]>(header: S): TransformStream<string, Record<S[number], any>>; export declare function tsvFormats<S extends string>(header: S): TransformStream<Record<Split<S, "\t">[number], any>, string>; export declare function tsvFormats<S extends string[]>(header: S): TransformStream<Record<S[number], any>, string>; export declare function tsvParses<S extends string>(header: S): TransformStream<string, Record<Split<S, "\t">[number], any>>; export declare function tsvParses<S extends string[]>(header: S): TransformStream<string, Record<S[number], any>>;