MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / MyController

Class MyController

packages/context/src/__tests__/unit/binding.unit.ts:681–692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

679 }
680
681 class MyController {
682 @inject('y', {optional: true})
683 private y: number | undefined;
684
685 @inject(filterByTag('task'))
686 private tasks: unknown[];
687
688 @inject(myFilter)
689 private timers: unknown[];
690
691 constructor(@inject('x') private x: string) {}
692 }
693 const myBinding = new Binding(key, true)
694 .tag('model', {name: 'my-model'})
695 .toClass(MyController);

Callers

nothing calls this directly

Calls 2

injectFunction · 0.85
filterByTagFunction · 0.85

Tested by

no test coverage detected