Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

tap

deprecated
@deprecated

Instead of passing separate callback arguments, use an observer argument. Signatures taking separate callback arguments will be removed in v8. Details: https://rxjs.dev/deprecations/subscribe-arguments

function tap<T>(observerOrNext?: Partial<TapObserver<T>> | ((value: T) => void)): MonoTypeOperatorFunction<T>;
function tap<T>(
next?: ((value: T) => void) | null,
error?: ((error: any) => void) | null,
complete?: (() => void) | null,
): MonoTypeOperatorFunction<T>;
§
tap<T>(observerOrNext?: Partial<TapObserver<T>> | ((value: T) => void)): MonoTypeOperatorFunction<T>
[src]

§Type Parameters

§Parameters

§
observerOrNext?: Partial<TapObserver<T>> | ((value: T) => void) optional
[src]
§
tap<T>(next?: ((value: T) => void) | null, error?: ((error: any) => void) | null, complete?: (() => void) | null): MonoTypeOperatorFunction<T>
[src]

§Type Parameters

§Parameters

§
next?: ((value: T) => void) | null optional
[src]
§
error?: ((error: any) => void) | null optional
[src]
§
complete?: (() => void) | null optional
[src]