title: Typescript typeof class and derived classes
body: <p>I have a base class which is extended by several child classes. Now I want to have the type of the parent class as the type of a property. All child types should be valid aswell. I have tried typeof but that doesn't work. Any ideas on how to have the type of a base class as the type for a property? The reason why I want a reference to the type is that I want to be able to create new instances of the Class, for example new test.componentType() should create a new instance of Child2</p>
  
  <pre><code>class Parent {
  
  }
  
  class Child1 extends Parent {
  
  }
  
  class Child2 extends Parent {
  
  }
  
  interface Config {
      componentType: typeof Parent;
  }
  
  const test: Config = {
      componentType: typeof Child2
  }
  
  new test.componentType() -&gt; should create a new instance of Child2
  </code></pre>