Improve typing

This commit is contained in:
Pieter Vander Vennet 2022-06-24 16:47:00 +02:00
parent 09b230b5be
commit 978df7253c
3 changed files with 29 additions and 11 deletions

View file

@ -66,8 +66,8 @@ async function main(includeTags = true) {
writeFileSync("./assets/key_totals.json",
JSON.stringify(
{
keys: Utils.MapToObj(keyTotal),
tags: Utils.MapToObj(tagTotal, v => Utils.MapToObj(v))
keys: Utils.MapToObj(keyTotal, t => t),
tags: Utils.MapToObj(tagTotal, v => Utils.MapToObj(v, t => t))
},
null, " "
)