@anexia/ngx-loading-tools
Version:
This library provides a toolset for common loading state management, by providing hackable Loading Strategies and a Http Interceptor.
14 lines (13 loc) • 743 B
TypeScript
import { HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
import { Observable } from 'rxjs';
import { LoadingStrategies } from "../interfaces/loading-strategy";
import * as i0 from "@angular/core";
export declare class WebServiceLoadingInterceptor implements HttpInterceptor {
private readonly strategies;
private readonly inspectLoadingInterceptor;
constructor(strategies: LoadingStrategies, inspectLoadingInterceptor: boolean);
intercept(request: HttpRequest<unknown>, delegate: HttpHandler): Observable<any>;
private stopStrategies;
static ɵfac: i0.ɵɵFactoryDeclaration<WebServiceLoadingInterceptor, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<WebServiceLoadingInterceptor>;
}