Typescript Infer Type From Array To Hashmap Vs Concurrenthashmap