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

Method get

packages/core/injector/module.ts:610–626  ·  view source on GitHub ↗
(
        typeOrToken: Type<TInput> | string | symbol,
        options: ModuleRefGetOrResolveOpts = {},
      )

Source from the content-addressed store, hash-verified

608 }
609
610 public get<TInput = any, TResult = TInput>(
611 typeOrToken: Type<TInput> | string | symbol,
612 options: ModuleRefGetOrResolveOpts = {},
613 ): TResult | Array<TResult> {
614 options.strict ??= true;
615 options.each ??= false;
616
617 return this.find<TInput, TResult>(
618 typeOrToken,
619 options.strict
620 ? {
621 moduleId: self.id,
622 each: options.each,
623 }
624 : options,
625 );
626 }
627
628 public resolve<TInput = any, TResult = TInput>(
629 typeOrToken: Type<TInput> | string | symbol,

Callers

nothing calls this directly

Calls 1

findMethod · 0.45

Tested by

no test coverage detected