I have decorated a method with a typescript decorator adding a member to the method:
export class MyClass {
@AddMyMember()
public myMethod(param1:string) {
// ...
}
}
So that I should be able to use it this way:
const myClassInstance = new MyClass();
myClassInstance.myMethod.myMember(); // error of course here, as myMember has not been declared yet...
But I cannot find a way to declare myMember efficiently:
export declare interface MyClass {
// Something great here maybe?....
}