@ynmstudio/utils
Version:
YNM Utilities for Angular
33 lines (28 loc) • 1.93 kB
TypeScript
import * as _angular_common_http from '@angular/common/http';
import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpHandlerFn, HttpResponse, HttpInterceptorFn } from '@angular/common/http';
import * as rxjs from 'rxjs';
import { Observable } from 'rxjs';
import * as i0 from '@angular/core';
/** Inject With Credentials into the request */
declare class CraftIframeResizerInterceptor implements HttpInterceptor {
constructor();
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
static ɵfac: i0.ɵɵFactoryDeclaration<CraftIframeResizerInterceptor, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<CraftIframeResizerInterceptor>;
}
declare const craftIframeResizerInterceptor: (req: HttpRequest<unknown>, next: HttpHandlerFn) => Observable<HttpEvent<unknown>>;
declare const craftPreviewInterceptor: (req: HttpRequest<unknown>, next: HttpHandlerFn) => rxjs.Observable<_angular_common_http.HttpEvent<unknown>> | rxjs.Observable<HttpResponse<any>>;
declare const craftPreviewPreventIsrCache: (req: HttpRequest<unknown>, next: HttpHandlerFn) => rxjs.Observable<_angular_common_http.HttpEvent<unknown>>;
/** Inject With Credentials into the request */
declare class CraftSecurityInterceptor implements HttpInterceptor {
constructor();
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
static ɵfac: i0.ɵɵFactoryDeclaration<CraftSecurityInterceptor, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<CraftSecurityInterceptor>;
}
declare const craftSecurityInterceptor: HttpInterceptorFn;
/**
* @deprecated Use `craftSecurityInterceptor` instead
*/
declare const CraftSecurityInterceptorFn: HttpInterceptorFn;
export { CraftIframeResizerInterceptor, CraftSecurityInterceptor, CraftSecurityInterceptorFn, craftIframeResizerInterceptor, craftPreviewInterceptor, craftPreviewPreventIsrCache, craftSecurityInterceptor };