UNPKG

864 BTypeScriptView Raw
1import { Controller } from '@nestjs/common/interfaces';
2import { ContextId, InstanceWrapper } from '../injector/instance-wrapper';
3export declare abstract class ContextCreator {
4 abstract createConcreteContext<T extends any[], R extends any[]>(metadata: T, contextId?: ContextId, inquirerId?: string): R;
5 getGlobalMetadata?<T extends any[]>(contextId?: ContextId, inquirerId?: string): T;
6 createContext<T extends unknown[] = any, R extends unknown[] = any>(instance: Controller, callback: (...args: any[]) => void, metadataKey: string, contextId?: ContextId, inquirerId?: string): R;
7 reflectClassMetadata<T>(instance: Controller, metadataKey: string): T;
8 reflectMethodMetadata<T>(callback: (...args: unknown[]) => unknown, metadataKey: string): T;
9 protected getContextId(contextId: ContextId, instanceWrapper: InstanceWrapper): ContextId;
10}
11
\No newline at end of file