title: Typescript - Get all implementations of interface
body: <p>I'm searching for a way to get a list of all classes implementing a certain interface in Typescript.</p>
  
  <p>In .Net for example, you can do this using reflection but i cant find any information about doing the same thing in Typescript.</p>
  
  <p>Code example of what i want to do:</p>
  
  <pre><code>interface IControlPanel { }
  class BasicControlPanel implements IControlPanel { }
  class AdvancedControlPanel implements IControlPanel { }
  window.onload = () =&gt;
  {
      var controlPanels = IControlPanel.GetImplementations();
      for (var x = 0; x &lt; controlPanels.length; x++)
      {
          document.write(controlPanels[x] + ", "); //outputs: BasicControlPanel, AdvancedControlPanel,
      }
  };
  </code></pre>
  
  <p>Even better would ofcourse be if the classes are easy to instantiate.</p>