Function tap

  • Type Parameters

    • T

    Parameters

    • Optional observerOrNext: Partial<TapObserver<T>> | ((value) => void)

    Returns MonoTypeOperatorFunction<T>

  • Type Parameters

    • T

    Parameters

    • Optional next: null | ((value) => void)
    • Optional error: null | ((error) => void)
    • Optional complete: null | (() => void)

    Returns MonoTypeOperatorFunction<T>

    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