UNPKG

@reactivex/ix-esnext-esm

Version:

The Interactive Extensions for JavaScript

12 lines (11 loc) 761 B
import { AsyncIterableX } from '../asynciterablex'; import { PartialAsyncObserver } from '../../observer'; import { MonoTypeOperatorAsyncFunction } from '../../interfaces'; export declare class TapAsyncIterable<TSource> extends AsyncIterableX<TSource> { private _source; private _observer; constructor(source: AsyncIterable<TSource>, observer: PartialAsyncObserver<TSource>); [Symbol.asyncIterator](): AsyncGenerator<any, void, unknown>; } export declare function tap<TSource>(observer: PartialAsyncObserver<TSource>): MonoTypeOperatorAsyncFunction<TSource>; export declare function tap<TSource>(next?: ((value: TSource) => any) | null, error?: ((err: any) => any) | null, complete?: (() => any) | null): MonoTypeOperatorAsyncFunction<TSource>;