I would like to implement an interface, but I am having hard time getting the syntax right.
Interface I would like to implement
interface Test { [name : string] : (source : string) => void; } If I understood this right, the interface is basically an object with strings as keys and functions as values.
Any help is much appreciated.
Edit : I get several errors, "incorrect implementation of interface", "index signature is missing", etc,
Playground example : void { console.log("test"); }}" rel="nofollow noreferrer">Link
I did not implement the interface, it is from a sdk