I'm trying to get the type of an instance method of a class. Is there a built-in (better) way other than looking up the type in the prototype of the class?
class MyClass
{
private delegate: typeof MyClass.prototype.myMethod; // gets the type ( boolean ) => number;
public myMethod( arg: boolean )
{
return 3.14;
}
}
Thanks in advance!