diff --git a/src/operator/filter.ts b/src/operator/filter.ts index 3c13f92e05..50700ccf98 100644 --- a/src/operator/filter.ts +++ b/src/operator/filter.ts @@ -44,9 +44,10 @@ import { TeardownLogic } from '../Subscription'; * @owner Observable */ /* tslint:disable:max-line-length */ -export function filter(this: Observable, predicate: (value: T, index: number) => boolean, thisArg?: any): Observable; -export function filter(this: Observable, predicate: (value: T, index: number) => value is S, thisArg?: any): Observable; -/* tslint:disable:max-line-length */ +export function filter(this: Observable, + predicate: ((value: T, index: number) => boolean) | + ((value: T, index: number) => value is S), + thisArg?: any): Observable; export function filter(this: Observable, predicate: (value: T, index: number) => boolean, thisArg?: any): Observable { return this.lift(new FilterOperator(predicate, thisArg));