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