@nestjs/common/interfaces#Controller TypeScript Examples
The following examples show how to use
@nestjs/common/interfaces#Controller.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: context-utils.d.ts From nest-jaeger with MIT License | 6 votes |
reflectCallbackParamtypes(instance: Controller, methodName: string): any[];
Example #2
Source File: context-utils.d.ts From nest-jaeger with MIT License | 6 votes |
reflectCallbackMetadata<T = any>(instance: Controller, methodName: string, metadataKey: string): T;
Example #3
Source File: external-context-creator.d.ts From nest-jaeger with MIT License | 5 votes |
createGuardsFn<TContext extends string = ContextType>(guards: any[], instance: Controller, callback: (...args: any[]) => any, contextType?: TContext): Function | null;
Example #4
Source File: router-execution-context.d.ts From nest-jaeger with MIT License | 5 votes |
createGuardsFn<TContext extends string = ContextType>(guards: CanActivate[], instance: Controller, callback: (...args: any[]) => any, contextType?: TContext): (args: any[]) => Promise<void> | null;
Example #5
Source File: router-execution-context.d.ts From nest-jaeger with MIT License | 5 votes |
getMetadata<TContext extends ContextType = ContextType>(instance: Controller, callback: (...args: any[]) => any, methodName: string, moduleKey: string, requestMethod: RequestMethod, contextType: TContext): HandlerMetadata;
Example #6
Source File: router-execution-context.d.ts From nest-jaeger with MIT License | 5 votes |
create(instance: Controller, callback: (...args: any[]) => unknown, methodName: string, moduleKey: string, requestMethod: RequestMethod, contextId?: import("..").ContextId, inquirerId?: string): <TRequest, TResponse>(req: TRequest, res: TResponse, next: Function) => Promise<void>;
Example #7
Source File: pipes-context-creator.d.ts From nest-jaeger with MIT License | 5 votes |
create(instance: Controller, callback: (...args: unknown[]) => unknown, moduleKey: string, contextId?: import("../injector/instance-wrapper").ContextId, inquirerId?: string): PipeTransform[];
Example #8
Source File: interceptors-context-creator.d.ts From nest-jaeger with MIT License | 5 votes |
create(instance: Controller, callback: (...args: unknown[]) => unknown, module: string, contextId?: import("../injector/instance-wrapper").ContextId, inquirerId?: string): NestInterceptor[];
Example #9
Source File: interceptors-consumer.d.ts From nest-jaeger with MIT License | 5 votes |
createContext(args: unknown[], instance: Controller, callback: (...args: unknown[]) => unknown): ExecutionContextHost;
Example #10
Source File: interceptors-consumer.d.ts From nest-jaeger with MIT License | 5 votes |
intercept<TContext extends string = ContextType>(interceptors: NestInterceptor[], args: unknown[], instance: Controller, callback: (...args: unknown[]) => unknown, next: () => Promise<unknown>, type?: TContext): Promise<unknown>;
Example #11
Source File: module.d.ts From nest-jaeger with MIT License | 5 votes |
assignControllerUniqueId(controller: Type<Controller>): void;
Example #12
Source File: module.d.ts From nest-jaeger with MIT License | 5 votes |
addController(controller: Type<Controller>): void;
Example #13
Source File: external-exception-filter-context.d.ts From nest-jaeger with MIT License | 5 votes |
create(instance: Controller, callback: RouterProxyCallback, module: string, contextId?: import("../injector/instance-wrapper").ContextId, inquirerId?: string): ExternalExceptionsHandler;
Example #14
Source File: external-context-creator.d.ts From nest-jaeger with MIT License | 5 votes |
getMetadata<TMetadata, TContext extends string = ContextType>(instance: Controller, methodName: string, metadataKey?: string, paramsFactory?: ParamsFactory, contextType?: TContext): ExternalHandlerMetadata;
Example #15
Source File: external-context-creator.d.ts From nest-jaeger with MIT License | 5 votes |
create<TParamsMetadata extends ParamsMetadata = ParamsMetadata, TContext extends string = ContextType>(instance: Controller, callback: (...args: unknown[]) => unknown, methodName: string, metadataKey?: string, paramsFactory?: ParamsFactory, contextId?: ContextId, inquirerId?: string, options?: ExternalContextOptions, contextType?: TContext): (...args: any[]) => Promise<any>;
Example #16
Source File: context-creator.d.ts From nest-jaeger with MIT License | 5 votes |
reflectClassMetadata<T>(instance: Controller, metadataKey: string): T;
Example #17
Source File: context-creator.d.ts From nest-jaeger with MIT License | 5 votes |
createContext<T extends unknown[] = any, R extends unknown[] = any>(instance: Controller, callback: (...args: any[]) => void, metadataKey: string, contextId?: ContextId, inquirerId?: string): R;
Example #18
Source File: guards-context-creator.d.ts From nest-jaeger with MIT License | 5 votes |
create(instance: Controller, callback: (...args: unknown[]) => unknown, module: string, contextId?: import("../injector/instance-wrapper").ContextId, inquirerId?: string): CanActivate[];
Example #19
Source File: guards-consumer.d.ts From nest-jaeger with MIT License | 5 votes |
createContext(args: unknown[], instance: Controller, callback: (...args: unknown[]) => unknown): ExecutionContextHost;
Example #20
Source File: guards-consumer.d.ts From nest-jaeger with MIT License | 5 votes |
tryActivate<TContext extends string = ContextType>(guards: CanActivate[], args: unknown[], instance: Controller, callback: (...args: unknown[]) => unknown, type?: TContext): Promise<boolean>;