refactor: improve types in the frontend, misc fixes (#39142)

This commit is contained in:
silverwind
2026-08-31 04:12:25 -07:00
committed by GitHub
parent 535fc29ae8
commit 7c93ead628
46 changed files with 392 additions and 217 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ export function strSubMatch(full: string, subLower: string) {
return res;
}
export function calcMatchedWeight(matchResult: Array<any>) {
export function calcMatchedWeight(matchResult: string[]) {
let weight = 0;
for (let i = 0; i < matchResult.length; i++) {
if (i % 2 === 1) { // matches are on odd indices, see strSubMatch