I have code based on this questions answer, but the problem is that they simply use javascript. I am in a Typescript environment, and can't simply make things up out of thin air. I must type them, and I must know where they're coming from, and how they got there. The pieces of code that are causing issues are -, but