UNPKG

1.29 kBTypeScriptView Raw
1import { Controller, NestInterceptor, Type } from '@nestjs/common/interfaces';
2import { ApplicationConfig } from '../application-config';
3import { ContextCreator } from '../helpers/context-creator';
4import { NestContainer } from '../injector/container';
5import { InstanceWrapper } from '../injector/instance-wrapper';
6export declare class InterceptorsContextCreator extends ContextCreator {
7 private readonly container;
8 private readonly config?;
9 private moduleContext;
10 constructor(container: NestContainer, config?: ApplicationConfig);
11 create(instance: Controller, callback: (...args: unknown[]) => unknown, module: string, contextId?: import("../injector/instance-wrapper").ContextId, inquirerId?: string): NestInterceptor[];
12 createConcreteContext<T extends any[], R extends any[]>(metadata: T, contextId?: import("../injector/instance-wrapper").ContextId, inquirerId?: string): R;
13 getInterceptorInstance(metatype: Function | NestInterceptor, contextId?: import("../injector/instance-wrapper").ContextId, inquirerId?: string): NestInterceptor | null;
14 getInstanceByMetatype(metatype: Type<unknown>): InstanceWrapper | undefined;
15 getGlobalMetadata<T extends unknown[]>(contextId?: import("../injector/instance-wrapper").ContextId, inquirerId?: string): T;
16}