I\'m not sure my question title was the most accurate but I\'m not entirely sure how to describe the problem I have. I have the following TypeScript code (very simplified ve