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

Method constructor

packages/core/test/injector/injector.spec.ts:846–850  ·  view source on GitHub ↗
(
          @Inject(CatService) cat: CatService,
          dog: DogService, // no @Inject — becomes a sparse array hole without design:paramtypes
          @Inject(CatService) cat2: CatService,
        )

Source from the content-addressed store, hash-verified

844 @Injectable()
845 class ZooService {
846 constructor(
847 @Inject(CatService) cat: CatService,
848 dog: DogService, // no @Inject — becomes a sparse array hole without design:paramtypes
849 @Inject(CatService) cat2: CatService,
850 ) {}
851 }
852
853 // Simulate missing emitDecoratorMetadata (esbuild).

Callers

nothing calls this directly

Calls 1

InjectFunction · 0.90

Tested by

no test coverage detected