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: undefined | , error: undefined | , complete: () => void): Subscription Subscribable<T>  
subscribe(next: undefined | , error: (error: any) => void, complete?: () => void): Subscription Subscribable<T>  
subscribe(next: (value: T) => void, error: undefined | , complete: () => void): Subscription Subscribable<T>  
subscribe(next?: (value: T) => void, error?: (error: any) => void, complete?: () => void): Subscription Subscribable<T>  

Defined in

Last Updated: 05 April, 2024