MCPcopy
hub / github.com/nestjs/nest / getApplyRequestProvidersMap

Method getApplyRequestProvidersMap

packages/core/scanner.ts:718–729  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

716 }
717
718 public getApplyRequestProvidersMap(): { [type: string]: Function } {
719 return {
720 [APP_INTERCEPTOR]: (interceptor: InstanceWrapper<NestInterceptor>) =>
721 this.applicationConfig.addGlobalRequestInterceptor(interceptor),
722 [APP_PIPE]: (pipe: InstanceWrapper<PipeTransform>) =>
723 this.applicationConfig.addGlobalRequestPipe(pipe),
724 [APP_GUARD]: (guard: InstanceWrapper<CanActivate>) =>
725 this.applicationConfig.addGlobalRequestGuard(guard),
726 [APP_FILTER]: (filter: InstanceWrapper<ExceptionFilter>) =>
727 this.applicationConfig.addGlobalRequestFilter(filter),
728 };
729 }
730
731 public isDynamicModule(
732 module: Type<any> | DynamicModule,

Callers 2

scanner.spec.tsFile · 0.80

Calls 4

addGlobalRequestPipeMethod · 0.80
addGlobalRequestGuardMethod · 0.80

Tested by

no test coverage detected