Observable
Una representación de cualquier conjunto de valores a lo largo de cualquier intervalo de tiempo. Es el componente más básico de RxJS
class Observable<T> implements Subscribable {
static create: Function;
static if: typeof iif;
static throw: typeof throwError;
constructor(
subscribe?: (
this: Observable<T>,
subscriber: Subscriber<T>
) => TeardownLogic
);
_isScalar: boolean;
source: Observable<any>;
operator: Operator<any, T>;
lift<R>(operator: Operator<T, R>): Observable<R>;
subscribe(
observerOrNext?:
| NextObserver<T>
| ErrorObserver<T>
| CompletionObserver<T>
| ((value: T) => void),
error?: (error: any) => void,
complete?: () => void
): Subscription;
_trySubscribe(sink: Subscriber<T>): TeardownLogic;
forEach(
next: (value: T) => void,
promiseCtor?: PromiseConstructorLike
): Promise<void>;
pipe(...operations: OperatorFunction<any, any>[]): Observable<any>;
toPromise(promiseCtor?: PromiseConstructorLike): Promise<T>;
}Subclases
Propiedades Estáticas
Propiedad
Tipo
Descripción
Constructor
Propiedades
Propiedad
Tipo
Descripción
Métodos
next
Un manejador para cada elemento emitido por el Observable.
pipe()
toPromise()
Recursos adicionales
Last updated