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

Method loadInjectable

packages/core/injector/injector.ts:261–274  ·  view source on GitHub ↗
(
    wrapper: InstanceWrapper<T>,
    moduleRef: Module,
    contextId = STATIC_CONTEXT,
    inquirer?: InstanceWrapper,
  )

Source from the content-addressed store, hash-verified

259 }
260
261 public async loadInjectable<T = any>(
262 wrapper: InstanceWrapper<T>,
263 moduleRef: Module,
264 contextId = STATIC_CONTEXT,
265 inquirer?: InstanceWrapper,
266 ) {
267 const injectables = moduleRef.injectables;
268 await this.loadInstance<T>(
269 wrapper,
270 injectables,
271 moduleRef,
272 this.createResolutionContext(contextId, inquirer),
273 );
274 }
275
276 public async loadProvider(
277 wrapper: InstanceWrapper<Injectable>,

Callers 2

injector.spec.tsFile · 0.80

Calls 1

Tested by

no test coverage detected