title: How to define a component class as an interface field in Typescript?
body: <p>I have the following interface:</p>
  
  <pre><code>interface Drawer {
    title: string,
    content: Component
  }
  </code></pre>
  
  <p>Afterwards I instantiate this interface:</p>
  
  <pre><code>let workspace: Drawer = {
      title: 'Workspaces',
      content: SidebarWorkspacesComponent
  };
  </code></pre>
  
  <p>During compilation I get the following error:</p>
  
  <pre><code>ERROR in src/app/components/sidebar/sidebar-toggler.component.ts(36,4): error TS2559: Type 'typeof SidebarWorkspacesComponent' has no properties in common with type 'Component'.
  </code></pre>
  
  <p>Now I tried using ComponentRef and read dozens of articles but can't figure out how to pass a component in an interface. Obviously I could simply declare content as "any" but I would rather know how to do things properly.</p>
  
  <p>Thanks in advance!</p>