TypeScript check and typing corrections.

This commit is contained in:
2026-01-30 19:03:37 +00:00
parent 21250a1a2d
commit 4f39875786
14 changed files with 27 additions and 22 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ export const sortedGrouped = (documents: Doc[], order: SortOrder) => {
// Find the "best" item in each folder (first after sorting = best according to criteria)
const folderBest = new Map<string, Doc>()
for (const [folder, docs] of byFolder) {
folderBest.set(folder, docs[0])
folderBest.set(folder, docs[0]!)
}
// Sort folders: by path for name sort, by best item for modified/size