title: Can the ViewChildren Decorator in Angular2 work with Interfaces?
body: <p>The way I understand Angular 2, the <code>ViewChildren</code> decorator allows a Component to get a Query for other Components or Directives.  I can get this to work in Typescript when I know the specific Type of the Component, but I would like to be able to get a <code>QueryList</code> when I just know the interface of the component.  That way, I can iterate through the view components.</p>
  
  <p>For example, in the component I may have this:</p>
  
  <pre><code>@ViewChildren(Box) shapes: QueryList&lt;Box&gt;;
  </code></pre>
  
  <p>where Box is a concrete TypeScript class.  What I would like to have is this:</p>
  
  <pre><code>@ViewChildren(IShape) shapes: QueryList&lt;IShape&gt;;
  </code></pre>
  
  <p>where <code>IShape</code> is an interface that Boxes or other Components may implement.  That way the view can be very dynamic and my code will still work.  Is there a recommended way to handle this?</p>