Hi,
I am doing the exercise where I need to define an interface for the object but I am having an issue and the error says
Subsequent property declarations must have the same type
following is my code
interface Employee {
name: string;
salary: number;
address: object
}
let employee = {name:'John Smith',salary:50_000,address:{street:'Flinders st',city:'Melbourne',zipCode:3144,},};
What am I missing or doing wrong? Why can’t the interface have a different type of types?