My interface looks like this
interface Person {
name?:string;
age? :number;
gender?:string
}
I need to reuse the same interface type, but with a modification indicating that all members will never be undefined. The updated version would look like this:
name:string;
age :number;
gender:string
Is there a way to make changes to an interface without having to rewrite the entire thing? Thank you in advance