I have a hashMap hashMap = initTable[string, Source]() where Source is a custom type I created. So the value of hashMap can only be of type Source, but I want it to also have another possible type which is an int. Is it possible to define another type which can be either Source or int. ?
In typescript, it would be something like
type newType = Source | number