I am in need of an interface that resembles the following structure:
interface EitherOr {
first: string;
second: number;
}
However, I want to make sure that this interface can only have either the property first
or second
. Do you think achieving this is possible?