interface Person{
name:string,
age:number,
gender?:string
}
interface Employee extends Person{
name='John Doe',
age:number
}
I am trying to achieve the above structure for a person and employee in TypeScript. I am also curious if something similar can be done using types instead of interfaces. Any insights would be greatly appreciated.