rxjs / latest / api / index / interface / subjectlike.html

SubjectLike

interface stable

interface SubjectLike<T> extends Observer<T>, Subscribable<T> {

  // inherited from index/Observer
  next: (value: T) => void
  error: (err: any) => void
  complete: () => void

  // inherited from index/Subscribable
  subscribe(observer: Partial<Observer<T>>): Unsubscribable
}

© 2015–2022 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors.
Code licensed under an Apache-2.0 License. Documentation licensed under CC BY 4.0.
https://rxjs.dev/api/index/interface/SubjectLike