Observable<T> Interface

Observable interface compatible with rxjs This interface ensures that consumers are not required to have rxjs as dependency.

To use it with rxjs operators wrap it inside Observable from rxjs. Example:

import { Observable as RxjsObservable } from "rxjs";

new RxjsObservable((subscriber) => thisObservable.subscribe(subscriber));

Extends

Inherited methods

Name Inherited from Description
subscribe(observer?: Observer<T>): Subscription Subscribable<T>  
subscribe(next: "null", error: "null", complete: () => void): Subscription Subscribable<T>  
subscribe(next: "null", error: (error: any) => void, complete?: () => void): Subscription Subscribable<T>  
subscribe(next: (value: T) => void, error: "null", complete: () => void): Subscription Subscribable<T>  
subscribe(next?: (value: T) => void, error?: (error: any) => void, complete?: () => void): Subscription Subscribable<T>  

Defined in

Last Updated: 14 November, 2024