( results: readonly IntegrationDetectionResult[], )
| 74 | }; |
| 75 | |
| 76 | const bestDetection = ( |
| 77 | results: readonly IntegrationDetectionResult[], |
| 78 | ): IntegrationDetectionResult | undefined => |
| 79 | [...results].sort((a, b) => detectionRank[b.confidence] - detectionRank[a.confidence])[0]; |
| 80 | |
| 81 | // --------------------------------------------------------------------------- |
| 82 | // Page |