Observable
Home > @backstage/types
> Observable
Observable sequence of values and errors, see TC39.
https://github.com/tc39/proposal-observable
This is used as a common return type for observable values and can be created using many different observable implementations, such as zen-observable or RxJS 5.
Signature:
export type Observable<T> = {
[Symbol.observable](): Observable<T>;
subscribe(observer: Observer<T>): Subscription;
subscribe(onNext?: (value: T) => void, onError?: (error: Error) => void, onComplete?: () => void): Subscription;
};
References: Observable, Observer, Subscription