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
- Subscribable<T>
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: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.