UNPKG

@nestjs/core

Version:

The core of NestJS, a TypeScript framework for Node.js backends: modules, dependency injection and the request pipeline, on Express, Fastify or node:http.

11 lines (10 loc) • 746 B
import type { NestInterceptor } from '@nestjs/common'; import { Observable } from 'rxjs'; import { ExecutionContextHost } from '../helpers/execution-context-host.js'; import type { ContextType } from '@nestjs/common'; import { type Controller } from '@nestjs/common/internal'; export declare class InterceptorsConsumer { intercept<TContext extends string = ContextType>(interceptors: NestInterceptor[], args: unknown[], instance: Controller, callback: (...args: unknown[]) => unknown, next: () => Promise<unknown>, type?: TContext): Promise<unknown>; createContext(args: unknown[], instance: Controller, callback: (...args: unknown[]) => unknown): ExecutionContextHost; transformDeferred(next: () => Promise<any>): Observable<any>; }