Assuming I have two interfaces:
interface A {
a: string;
b: string;
x: string;
}
interface B {
a: string;
b: string;
}
When I have an object implementing interface A and I want to drop the property x (and the object implements interface B afterwards) - how do I tell TS what I am trying to do? Just executing delete obj.x; on the object causes TS to complain, because x is required from interface A.