@nestjs/common/interfaces#ContextType TypeScript Examples

The following examples show how to use @nestjs/common/interfaces#ContextType. 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 vote down vote up
getContextFactory<TContext extends string = ContextType>(contextType: TContext, instance?: object, callback?: Function): (args: unknown[]) => ExecutionContextHost;
Example #2
Source File: guards-consumer.d.ts    From nest-jaeger with MIT License 5 votes vote down vote up
tryActivate<TContext extends string = ContextType>(guards: CanActivate[], args: unknown[], instance: Controller, callback: (...args: unknown[]) => unknown, type?: TContext): Promise<boolean>;
Example #3
Source File: external-context-creator.d.ts    From nest-jaeger with MIT License 5 votes vote down vote up
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 #4
Source File: external-context-creator.d.ts    From nest-jaeger with MIT License 5 votes vote down vote up
getMetadata<TMetadata, TContext extends string = ContextType>(instance: Controller, methodName: string, metadataKey?: string, paramsFactory?: ParamsFactory, contextType?: TContext): ExternalHandlerMetadata;
Example #5
Source File: external-context-creator.d.ts    From nest-jaeger with MIT License 5 votes vote down vote up
createGuardsFn<TContext extends string = ContextType>(guards: any[], instance: Controller, callback: (...args: any[]) => any, contextType?: TContext): Function | null;
Example #6
Source File: external-proxy.d.ts    From nest-jaeger with MIT License 5 votes vote down vote up
createProxy<TContext extends string = ContextType>(targetCallback: (...args: any[]) => any, exceptionsHandler: ExternalExceptionsHandler, type?: TContext): (...args: any[]) => Promise<any>;
Example #7
Source File: interceptors-consumer.d.ts    From nest-jaeger with MIT License 5 votes vote down vote up
intercept<TContext extends string = ContextType>(interceptors: NestInterceptor[], args: unknown[], instance: Controller, callback: (...args: unknown[]) => unknown, next: () => Promise<unknown>, type?: TContext): Promise<unknown>;
Example #8
Source File: router-execution-context.d.ts    From nest-jaeger with MIT License 5 votes vote down vote up
getMetadata<TContext extends ContextType = ContextType>(instance: Controller, callback: (...args: any[]) => any, methodName: string, moduleKey: string, requestMethod: RequestMethod, contextType: TContext): HandlerMetadata;
Example #9
Source File: router-execution-context.d.ts    From nest-jaeger with MIT License 5 votes vote down vote up
createGuardsFn<TContext extends string = ContextType>(guards: CanActivate[], instance: Controller, callback: (...args: any[]) => any, contextType?: TContext): (args: any[]) => Promise<void> | null;