title: how to handle view child static error in angular 8
body: <p>this is my code i recently upgraded to angular 8 and this code is no longer working</p>
  <pre><code>@ViewChild(MatList, { read: ElementRef }) matList: ElementRef;
  
    // getting a reference to the items/messages within the list
    @ViewChildren(MatListItem, { read: ElementRef }) matListItems: QueryList&lt;MatListItem&gt;;
  </code></pre>
  <p>this is message error TS2345: Argument of type '{ read: typeof ElementRef; }' is not assignable to parameter of type '{ read?: any; static: boolean; }'.
  Property 'static' is missing in type '{ read: typeof ElementRef; }' but required in type '{ read?: any; static: boolean; }'.</p>