How to recombine object based on restricted typed values passed into a function
I am trying to refactor some code where a function returns a different type of content based on the key I pass in, and I need to put together a function signature that will be able to accept different types of content based on what key it is.