title: How to extend & list all TypeScript class properties and methods in constructor without turning them into properties?
body: <p>I have the following definition:</p>
  
  <pre><code>interface ToConstructor&lt;T&gt; {
    new &lt;C extends Partial&lt;T&gt;&gt;(cfg?: C &amp; Partial&lt;T&gt; &amp; ThisType&lt;T &amp; C&gt;): T &amp; C
  }
  </code></pre>
  
  <p>The result of <code>&amp; Partial&lt;T&gt;</code> is in code suggestion, everything shows with property icon instead of method. like the following image:</p>
  
  <p><a href="https://i.stack.imgur.com/cfQWr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cfQWr.png" alt="All Properties (not wanted)"></a></p>
  
  <p>What I wanted is the ability to have code suggestion in this way:</p>
  
  <p><a href="https://i.stack.imgur.com/NPhCz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NPhCz.png" alt="enter image description here"></a></p>