Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Observable<T>

An Observable is a stream you can subscribe by telling it what to do when a new value is emitted, what to do when an error is emitted, and what to do when the stream is completed.

Type parameters

  • T

Hierarchy

  • Observable

Index

Properties

Properties

subscribe

subscribe: (onNext?: (value: T) => void, onError?: (error: Error) => void, onComplete?: () => void) => any

Type declaration

    • (onNext?: (value: T) => void, onError?: (error: Error) => void, onComplete?: () => void): any
    • Parameters

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

            • value: T

            Returns void

      • Optional onError: (error: Error) => void
          • (error: Error): void
          • Parameters

            • error: Error

            Returns void

      • Optional onComplete: () => void
          • (): void
          • Returns void

      Returns any

Generated using TypeDoc