@cspell/cspell-pipe
Version:
Library to make working with Iterators/AsyncIterators easier.
19 lines • 703 B
TypeScript
/**
* Tap allows you to listen on values, without modifying them.
*
* @param fn - function to call for each value.
*/
export declare function opTapAsync<T>(tapFn: (v: T) => void): (iter: AsyncIterable<T>) => AsyncIterable<T>;
/**
* Tap allows you to listen on values, without modifying them.
*
* @param fn - function to call for each value.
*/
export declare function opTapSync<T>(tapFn: (v: T) => void): (iter: Iterable<T>) => Iterable<T>;
/**
* Tap allows you to listen on values, without modifying them.
*
* @param fn - function to call for each value.
*/
export declare const opTap: <T>(fn: (v: T) => void) => import("../internalTypes.js").PipeFn<T, T>;
//# sourceMappingURL=tap.d.ts.map