I would like to use two interfaces as in a Union Types in TypeScript, but as you can see in the simple example below, I can not check to see what type the parameter is and I can just access the properties that the two interfaces share. Do you have any suggestions on what should I do?
