@@ -57,7 +57,7 @@ export class CdkVirtualScrollViewport implements OnInit, OnDestroy {
5757 @Input ( ) orientation : 'horizontal' | 'vertical' = 'vertical' ;
5858
5959 /** The element that wraps the rendered content. */
60- @ViewChild ( 'contentWrapper' ) _contentWrapper : ElementRef ;
60+ @ViewChild ( 'contentWrapper' ) _contentWrapper : ElementRef < HTMLElement > ;
6161
6262 /** A stream that emits whenever the rendered range changes. */
6363 renderedRangeStream : Observable < ListRange > = this . _renderedRangeSubject . asObservable ( ) ;
@@ -67,7 +67,10 @@ export class CdkVirtualScrollViewport implements OnInit, OnDestroy {
6767 */
6868 _totalContentSize = 0 ;
6969
70- /** The the rendered content transform. */
70+ /**
71+ * The CSS transform applied to the rendered subset of items so that they appear within the bounds
72+ * of the visible viewport.
73+ */
7174 private _renderedContentTransform : string ;
7275
7376 /** The currently rendered range of indices. */
@@ -103,7 +106,7 @@ export class CdkVirtualScrollViewport implements OnInit, OnDestroy {
103106 /** A list of functions to run after the next change detection cycle. */
104107 private _runAfterChangeDetection : Function [ ] = [ ] ;
105108
106- constructor ( public elementRef : ElementRef ,
109+ constructor ( public elementRef : ElementRef < HTMLElement > ,
107110 private _changeDetectorRef : ChangeDetectorRef ,
108111 private _ngZone : NgZone ,
109112 @Inject ( VIRTUAL_SCROLL_STRATEGY ) private _scrollStrategy : VirtualScrollStrategy ) { }
@@ -327,7 +330,7 @@ export class CdkVirtualScrollViewport implements OnInit, OnDestroy {
327330 }
328331 }
329332
330- for ( let fn of this . _runAfterChangeDetection ) {
333+ for ( const fn of this . _runAfterChangeDetection ) {
331334 fn ( ) ;
332335 }
333336 this . _runAfterChangeDetection = [ ] ;
0 commit comments