From 0a25fca2d7457eafa923e24c54af779611e2560b Mon Sep 17 00:00:00 2001 From: Ben Lesh Date: Mon, 10 Sep 2018 13:23:27 -0700 Subject: [PATCH] fix(typings): update typings to support more strict typings in RxJS 6.3.2 (#12979) --- src/lib/progress-bar/progress-bar.ts | 2 +- src/lib/table/table-data-source.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/progress-bar/progress-bar.ts b/src/lib/progress-bar/progress-bar.ts index 1dfb0b26594..41755cdbeda 100644 --- a/src/lib/progress-bar/progress-bar.ts +++ b/src/lib/progress-bar/progress-bar.ts @@ -191,7 +191,7 @@ export class MatProgressBar extends _MatProgressBarMixinBase implements CanColor // instead only on the animation that we care about (primary value bar's transitionend) this._ngZone.runOutsideAngular((() => { this._animationEndSubscription = - fromEvent(this._primaryValueBar.nativeElement, 'transitionend') + fromEvent(this._primaryValueBar.nativeElement, 'transitionend') .pipe(filter(((e: TransitionEvent) => e.target === this._primaryValueBar.nativeElement))) .subscribe(_ => this._ngZone.run(() => this.emitAnimationEnd())); diff --git a/src/lib/table/table-data-source.ts b/src/lib/table/table-data-source.ts index a89e52b177d..ad7e5c14cf6 100644 --- a/src/lib/table/table-data-source.ts +++ b/src/lib/table/table-data-source.ts @@ -200,11 +200,11 @@ export class MatTableDataSource extends DataSource { // The `sortChange` and `pageChange` acts as a signal to the combineLatests below so that the // pipeline can progress to the next step. Note that the value from these streams are not used, // they purely act as a signal to progress in the pipeline. - const sortChange: Observable = this._sort ? - merge(this._sort.sortChange, this._sort.initialized) : + const sortChange: Observable = this._sort ? + merge(this._sort.sortChange, this._sort.initialized) : observableOf(null); - const pageChange: Observable = this._paginator ? - merge(this._paginator.page, this._paginator.initialized) : + const pageChange: Observable = this._paginator ? + merge(this._paginator.page, this._paginator.initialized) : observableOf(null); const dataStream = this._data;