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
9 lines • 361 B
TypeScript
import type { Awaitable } from "./Awaitable";
type MapFnIndexed<T> = (x: T, i?: number) => Awaitable<any>;
/**
* log the value and index and return as original stream, handy to debug.
* Note: stream won't await the log function.
*/
export declare function logs<T>(mapFn?: MapFnIndexed<T>): TransformStream<T, T>;
export {};
//# sourceMappingURL=logs.d.ts.map