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

Method loadEnhancer

packages/core/injector/injector.ts:927–935  ·  view source on GitHub ↗
(item: InstanceWrapper)

Source from the content-addressed store, hash-verified

925 }
926 const enhancers = wrapper.getEnhancersMetadata() || [];
927 const loadEnhancer = (item: InstanceWrapper) => {
928 const hostModule = item.host!;
929 return this.loadInstance(
930 item,
931 hostModule.injectables,
932 hostModule,
933 this.createResolutionContext(ctx, inquirer),
934 );
935 };
936 await Promise.all(enhancers.map(loadEnhancer));
937 }
938

Callers

nothing calls this directly

Calls 2

loadInstanceMethod · 0.95

Tested by

no test coverage detected