()
| 30 | }; |
| 31 | |
| 32 | export function initDetectors () { |
| 33 | const typeArray = config.detectors === 'all' ? |
| 34 | Object.keys(Detectors) : config.detectors; |
| 35 | |
| 36 | typeArray.forEach(type => { |
| 37 | const DetectorClass = Detectors[type as Exclude<DetectorType, DetectorType.Unknown>]; |
| 38 | new DetectorClass(); |
| 39 | }); |
| 40 | } |