@controladad/ng-base
Version:
Everything you need for Angular
11 lines (10 loc) • 526 B
TypeScript
import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http';
import { Observable } from 'rxjs';
import * as i0 from "@angular/core";
export declare class ErrorInterceptor implements HttpInterceptor {
private readonly auth;
private readonly snackbar;
intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorInterceptor, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<ErrorInterceptor>;
}