The observable that allows to subscribe to a stream of values.

interface Observable<T> {
    subscribe(listener): (() => void);
}

Type Parameters

  • T

    The value pushed by the observable.

Hierarchy (view full)

Implemented by

Methods

Methods

  • Subscribes the listener to changes of the observed value.

    Parameters

    • listener: ((value) => void)

      The listener to subscribe.

        • (value): void
        • Parameters

          • value: T

          Returns void

    Returns (() => void)

      • (): void
      • Returns void