I want to assert the type of an objects property to clear an ambiguity that is caused by that property having a union type.
interface myObject {
myProperty: customType1|customType2
}
//Now I want to make clear in some other line of code that i know what is
// The type of that property at that time, somthing like this
myObject.<customType1>myProperty
I searched around but I cant find anything referring to this kind of case, is it even possible?