@cause-911/core
Version:
Run `npm install @cause-911/core --save` to add this library to your project
13 lines (12 loc) • 484 B
TypeScript
import { Injector } from '@angular/core';
import { HttpInterceptor, HttpEvent, HttpHandler, HttpRequest } from '@angular/common/http';
import { Observable } from 'rxjs';
export declare class HttpErrorInterceptor implements HttpInterceptor {
private snackBar;
private config;
constructor(injector: Injector);
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
private handleRetry;
private handleError;
private showError;
}