summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-04-18 15:47:42 +0200
committerTor Andersson <tor@ccxvii.net>2024-04-18 15:47:42 +0200
commit6bbae67ac102e6ec3867028920faaa4e3275eb61 (patch)
treecd6cbd63bcf810947fb207fcad6bb16570758a0b
parent807fb9c9e7de1cb4d15b5e3ddd26ff9fb2b0895b (diff)
downloadplantagenet-6bbae67ac102e6ec3867028920faaa4e3275eb61.tar.gz
Fix type signature for map_for_each.
-rw-r--r--rules.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.ts b/rules.ts
index 2e71910..6e39457 100644
--- a/rules.ts
+++ b/rules.ts
@@ -12121,7 +12121,7 @@ function map_delete(map, item) {
}
}
-function map_for_each<K,V>(map: MyMap<K,V>, f: (K,V)=>void) {
+function map_for_each<K,V>(map: MyMap<K,V>, f: (_:K,_:V)=>void) {
for (let i = 0; i < map.length; i += 2)
f(map[i] as K, map[i+1] as V)
}