I am trying to update my interface as shown below
interface Student{
Name: String;
age: Number;
}
However, instead of the current structure, I would like it to be like this
interface Student{
Name: String;
age | DOB: Number | Date;
}
This means that the second property can either be age
or DOB
.
I encountered an error while attempting this. Is it feasible?