With typescript, apparently it is possible to have an Array() type item where you specify the index of that array as an ID. While I always assumed this was only possible in the Object() type. Example:
items: String[] = []
items["someid"] = new SomeClass()
console.log(items)
Returns:
items:[someid: SomeClass]
Although I like this idea, is it ok to use it like this?