I'm trying to implement a function without name like this:
interface I {
(name: string): void;
}
class C implements I {
(name: string):void { }
}
I want to use C like this, but it doesn't work:
C("test");
I can write it in javascript and use the interface declaration: I("test");
But I want to do the same in Typescript.