UNPKG

@obliczeniowo/elementary

Version:
14 lines (13 loc) 659 B
import { HttpCacheService } from './http-cache.service'; import { HttpEvent, HttpHandler, HttpRequest } from '@angular/common/http'; import { Observable } from 'rxjs'; import { CacheService } from './cache.service'; import * as i0 from "@angular/core"; export declare class CacheInterceptorService { private readonly cache; private readonly http; constructor(cache: CacheService, http: HttpCacheService); intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>; static ɵfac: i0.ɵɵFactoryDeclaration<CacheInterceptorService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<CacheInterceptorService>; }