type signature on fillSets

This commit is contained in:
rhiannon morris 2024-07-07 20:08:29 +02:00
parent 5c70198e38
commit b1b0f806d5
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ let itemsByYear: Map<string, Set<HTMLElement>>;
let showSingles = false; let showSingles = false;
function fillSets() { function fillSets(): [Set<string>, Set<string>] {
function checkedValues(boxes: Boxes) { function checkedValues(boxes: Boxes) {
return new Set(Array.from(boxes).filter(b => b.checked).map(b => b.value)); return new Set(Array.from(boxes).filter(b => b.checked).map(b => b.value));
} }