What If Your Object Could Be More Than One Type in TypeScript?

In TypeScript, imagine you have a situation where you have an object that could be one of several different types. How do you explain to TypeScript that the object you are working with is a specific type? Not very clear? OK. Let s see some code, and then it will likely / hopefully make more sense. ... Read more The post What If Your Object Could Be More Than One Type in TypeScript? appeared first…