title: TypeScript: get type of instance method of class
body: <p>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?</p>
  
  <pre><code>class MyClass
  {
      private delegate: typeof MyClass.prototype.myMethod; // gets the type ( boolean ) =&gt; number;
  
      public myMethod( arg: boolean )
      {
          return 3.14;
      }
  }
  </code></pre>
  
  <p>Thanks in advance!</p>