Here is the situation I am facing:
export class Test {
public Method_A() {
console.log("Method_A");
}
}
Now, in a separate file, I have the following code:
const test = new Test();
test.MethodA()
However, I also require the following functionality:
const test = new Test();
test.MethodA().setSomething();
My question is, how can I create a method that is a subset of my Method_A()?