make a type more general

This commit is contained in:
rhiannon morris 2024-07-07 20:21:12 +02:00
parent fe338b2f3f
commit 0de54d15d4

View file

@ -37,7 +37,7 @@ function updateItems() {
if (marker !== null) marker.hidden = hide;
}
function disp(pfx: string, tags: string[]) {
function disp(pfx: string, tags: Iterable<string>) {
return [...tags].map(x => pfx + x).join('\u2003'); // em space
}
let plus = disp('+\u2009', Array.from(reqTags)); // thin space