type signature on fillSets

This commit is contained in:
rhiannon morris 2024-07-07 20:08:29 +02:00
parent 5c70198e38
commit b1b0f806d5

View file

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