Imagine you have the following interface:
interface Person {
age: number
name: string
}
Now, your goal is to create an object that adheres to this interface using only two commands. How can you accomplish this task?
let boss = {age: 50}
boss.name = "John"; // error
// now I want boss to be of type Person
Edit: In this scenario, I do not want to use optionals; strict types are preferred.