ngx-json-ui
Version:
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0.
15 lines (14 loc) • 689 B
TypeScript
import { HttpEvent, HttpInterceptor, HttpHandler, HttpRequest } from '@angular/common/http';
import { Observable } from 'rxjs';
import { NotificationService } from '../core/services/notification.service';
import * as i0 from "@angular/core";
/**
* Intercepts HTTP requests and handles errors centrally.
*/
export declare class HttpErrorInterceptor implements HttpInterceptor {
private notification;
constructor(notification: NotificationService);
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
static ɵfac: i0.ɵɵFactoryDeclaration<HttpErrorInterceptor, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<HttpErrorInterceptor>;
}