Discriminated union type returns a new type that contains only the properties that are present in all interfaces.
An interface is a declaration that is similar to a class but does not have a method implementation. You can use it to describe the properties and methods of obj...