MCPcopy
hub / github.com/midwayjs/midway / constructor

Method constructor

packages/core/test/context/container.test.ts:865–866  ·  view source on GitHub ↗
(@Inject() public a: TestA)

Source from the content-addressed store, hash-verified

863 class TestB {
864 data = 'b';
865 constructor(@Inject() public a: TestA) {
866 }
867 }
868 const container = new MidwayContainer();
869 container.bind(TestA);

Callers

nothing calls this directly

Calls 2

InjectFunction · 0.90
LazyInjectFunction · 0.90

Tested by

no test coverage detected