I need to implement the following (simplified) Typescript Interface of an d.ts file:
interface SomeLibrary {
someProperty: SomePropertyClass;
someMethod();
(someParam: string): SomeClass; // don't know hot to implement this
}
How do I implement this interface in an own class? Especially the unnamed method is problematic. How are those methods called?