66 * found in the LICENSE file at https://angular.io/license
77 */
88
9- import { AfterViewInit , ElementRef , NgZone , OnDestroy } from '@angular/core' ;
9+ import { AfterViewInit , Directive , ElementRef , NgZone , OnDestroy } from '@angular/core' ;
1010import { Directionality } from '@angular/cdk/bidi' ;
1111import { fromEvent , merge , ReplaySubject } from 'rxjs' ;
1212import { filter , map , mapTo , pairwise , startWith , take , takeUntil } from 'rxjs/operators' ;
@@ -26,14 +26,15 @@ let nextId = 0;
2626 * Base class for ColumnResize directives which attach to mat-table elements to
2727 * provide common events and services for column resizing.
2828 */
29+ @Directive ( )
2930export abstract class ColumnResize implements AfterViewInit , OnDestroy {
3031 protected readonly destroyed = new ReplaySubject < void > ( ) ;
3132
3233 /* Publicly accessible interface for triggering and being notified of resizes. */
3334 abstract readonly columnResizeNotifier : ColumnResizeNotifier ;
3435
3536 abstract readonly directionality : Directionality ;
36- protected abstract readonly elementRef : ElementRef ;
37+ protected abstract readonly elementRef : ElementRef < HTMLElement > ;
3738 protected abstract readonly eventDispatcher : HeaderRowEventDispatcher ;
3839 protected abstract readonly ngZone : NgZone ;
3940 protected abstract readonly notifier : ColumnResizeNotifierSource ;
0 commit comments