@cardboard-box/ngx-box
Version:
A collection of useful directives, components and services for angular
13 lines (12 loc) • 469 B
TypeScript
import { Observable } from "rxjs";
export declare class RxjsHttpResp<T> {
private _isProd;
url: string;
observable: Observable<T>;
rawObservable: Observable<T>;
get promise(): Promise<T>;
constructor(_observable: Observable<T>, _url: string, _isProd: boolean);
error(handler: (err: any) => void, def?: T): this;
tap(handler: (item: T) => void): this;
subscribe(handler: (item: T) => void): import("rxjs").Subscription;
}