File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 8
8
9
9
import { DataSource } from '@angular/cdk/table' ;
10
10
import { BehaviorSubject } from 'rxjs/BehaviorSubject' ;
11
- import { MatPaginator } from '@angular/material/paginator' ;
12
- import { MatSort } from '@angular/material/sort' ;
11
+ import { MatPaginator , PageEvent } from '@angular/material/paginator' ;
12
+ import { MatSort , Sort } from '@angular/material/sort' ;
13
+ import { Observable } from 'rxjs/Observable' ;
13
14
import { Subscription } from 'rxjs/Subscription' ;
14
15
import { combineLatest } from 'rxjs/operators/combineLatest' ;
15
16
import { map } from 'rxjs/operators/map' ;
@@ -178,8 +179,8 @@ export class MatTableDataSource<T> extends DataSource<T> {
178
179
_updateChangeSubscription ( ) {
179
180
// Sorting and/or pagination should be watched if MatSort and/or MatPaginator are provided.
180
181
// Otherwise, use an empty observable stream to take their place.
181
- const sortChange = this . _sort ? this . _sort . sortChange : empty ( ) ;
182
- const pageChange = this . _paginator ? this . _paginator . page : empty ( ) ;
182
+ const sortChange : Observable < Sort > = this . _sort ? this . _sort . sortChange : empty ( ) ;
183
+ const pageChange : Observable < PageEvent > = this . _paginator ? this . _paginator . page : empty ( ) ;
183
184
184
185
if ( this . _renderChangesSubscription ) {
185
186
this . _renderChangesSubscription . unsubscribe ( ) ;
You can’t perform that action at this time.
0 commit comments