UNPKG

@cspell/cspell-pipe

Version:
19 lines 703 B
/** * 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