( results: readonly IntegrationDetectionResult[], )
| 62 | }; |
| 63 | |
| 64 | const bestDetection = ( |
| 65 | results: readonly IntegrationDetectionResult[], |
| 66 | ): IntegrationDetectionResult | undefined => |
| 67 | [...results].sort((a, b) => detectionRank[b.confidence] - detectionRank[a.confidence])[0]; |
| 68 | |
| 69 | // --------------------------------------------------------------------------- |
| 70 | // Page |