I'm trying to create a interface that defines the a interface with a array of functions and a this guard as below:
interface MyInterface {
myFunctions: ((this:MyInterface, somevar: string): void)[];
}
But , when i try to use it as below:
class Myclass implements MyInterface {
myFunctions: ((this:Implementation, somevar: string): void)[];
useFunction (): void {
this.myFunctions[0](somevar);
}
}
The erro below happens Class 'Myclass ' incorrectly implements interface 'MyInterface'
Somebody knows how i do implements that ??