Given a typescript interface:
interface alpha {
name?: string;
age?: string;
sign?: string;
}
I would like to create another interface that is confined to have a limited set of properties from another interface
interface beta {
age?: string;
}
Is this possible?
If someone was to have:
interface beta {
foo?: string;
}
I'd like it to be invalid.