Interface Subscribable<T>

interface Subscribable<T> {
    [observable](): Subscribable<T>;
    subscribe(onNext: ((value: T) => void), onError?: ((reason: string | Error) => void), onComplete?: (() => void)): Subscription;
}

Type Parameters

  • T = any

Implemented by

Methods

  • Parameters

    • onNext: ((value: T) => void)
        • (value): void
        • Parameters

          • value: T

          Returns void

    • OptionalonError: ((reason: string | Error) => void)
        • (reason): void
        • Parameters

          Returns void

    • OptionalonComplete: (() => void)
        • (): void
        • Returns void

    Returns Subscription