UNPKG

665 BTypeScriptView Raw
1import { NestInterceptor } from '@nestjs/common';
2import { ContextType, Controller } from '@nestjs/common/interfaces';
3import { Observable } from 'rxjs';
4import { ExecutionContextHost } from '../helpers/execution-context-host';
5export declare class InterceptorsConsumer {
6 intercept<TContext extends string = ContextType>(interceptors: NestInterceptor[], args: any[], instance: Controller, callback: (...args: any[]) => any, next: () => Promise<any>, type?: TContext): Promise<any>;
7 createContext(args: any[], instance: Controller, callback: (...args: any[]) => any): ExecutionContextHost;
8 transformDeffered(next: () => Promise<any>): Observable<any>;
9}
10
\No newline at end of file