(childTokens: any[])
| 12 | |
| 13 | export class MultiMetric extends Metric { |
| 14 | static provideWith(childTokens: any[]): any[] { |
| 15 | return [ |
| 16 | { |
| 17 | provide: _CHILDREN, |
| 18 | useFactory: (injector: Injector) => childTokens.map((token) => injector.get(token)), |
| 19 | deps: [Injector], |
| 20 | }, |
| 21 | { |
| 22 | provide: MultiMetric, |
| 23 | useFactory: (children: Metric[]) => new MultiMetric(children), |
| 24 | deps: [_CHILDREN], |
| 25 | }, |
| 26 | ]; |
| 27 | } |
| 28 | |
| 29 | constructor(private _metrics: Metric[]) { |
| 30 | super(); |
no test coverage detected