Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ObservableSubscriber<T>

A thing that subscribes to an Observer. This is conceptually tied to the event handlers you pass to the subscribe method of an Observable, but this is typically an internal type that the observable library creates from those functions. Since the event handlers are all optional in Observerable::subscribe, the library will fill in suitable noop handlers on the ObservableSubscriber before passing it to the subscriber-func, so you don't have to worry about checking to see if they're present or not.

Type parameters

  • T

Hierarchy

  • ObservableSubscriber

Index

Properties

Properties

complete

complete: () => void

Type declaration

    • (): void
    • Returns void

error

error: (error: Error) => void

Type declaration

    • (error: Error): void
    • Parameters

      • error: Error

      Returns void

next

next: (value: T) => void

Type declaration

    • (value: T): void
    • Parameters

      • value: T

      Returns void

Generated using TypeDoc