this is my code i recently upgraded to angular 8 and this code is no longer working
@ViewChild(MatList, { read: ElementRef }) matList: ElementRef;
// getting a reference to the items/messages within the list
@ViewChildren(MatListItem, { read: ElementRef }) matListItems: QueryList<MatListItem>;
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; }'.