| 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); |
nothing calls this directly
no test coverage detected