Does Typescript have the concept of subset interfaces.
There is a parent interface parent which looks like:
interface parent {
a?: string;
b?: string;
}
There are other interfaces one and two.
interface one {
a: string
}
interface two {
b: string
}
Both one and two shouldn't be able to add fields that aren't present in the parent interface. is this possible?