My current situation is as follows:
interface A {
x: {
f1(s: string): string;
};
}
interface B extends A {
}
I am looking to enhance interface A by adding a new method called f2 within the context of interface B, without redefining f1. It would look something like this:
interface B extends A {
x: {
f2(s: string): string;
};
}
Is this achievable? I'd appreciate any references or documentation on this topic.