UNPKG

697 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: unknown[], instance: Controller, callback: (...args: unknown[]) => unknown, next: () => Promise<unknown>, type?: TContext): Promise<unknown>;
7 createContext(args: unknown[], instance: Controller, callback: (...args: unknown[]) => unknown): ExecutionContextHost;
8 transformDeferred(next: () => Promise<any>): Observable<any>;
9}
10
\No newline at end of file