Here's a scenario:
interface A {
a: number;
x: any;
}
interface B extends A {
b: number;
}
interface C {
a: number;
b: number;
}
Can we make B
equal to C
(excluding the x
field but still extending A
)? If it is possible, then how can we achieve it?