@nestjs/common
Version:
Nest - modern, fast, powerful node.js web framework (@common)
14 lines (13 loc) • 621 B
TypeScript
import { Observable } from 'rxjs';
import { CallHandler, ExecutionContext, HttpServer, NestInterceptor } from '../../interfaces';
export interface HttpAdapterHost<T extends HttpServer = any> {
httpAdapter: T;
}
export declare class CacheInterceptor implements NestInterceptor {
protected readonly cacheManager: any;
protected readonly reflector: any;
protected readonly httpAdapterHost: HttpAdapterHost;
constructor(cacheManager: any, reflector: any);
intercept(context: ExecutionContext, next: CallHandler): Promise<Observable<any>>;
trackBy(context: ExecutionContext): string | undefined;
}