Skip to content

Commit

Permalink
chore(find): fix compat signatures (#3975)
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant authored and benlesh committed Aug 1, 2018
1 parent 0cc87e0 commit 6d6d08f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compat/operator/find.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { find as higherOrder } from 'rxjs/operators';
/* tslint:disable:max-line-length */
export function find<T, S extends T>(this: Observable<T>,
predicate: (value: T, index: number) => value is S,
thisArg?: any): Observable<S>;
thisArg?: any): Observable<S | undefined>;
export function find<T>(this: Observable<T>,
predicate: (value: T, index: number) => boolean,
thisArg?: any): Observable<T>;
thisArg?: any): Observable<T | undefined>;
/* tslint:enable:max-line-length */

/**
Expand Down Expand Up @@ -44,6 +44,6 @@ export function find<T>(this: Observable<T>,
* @owner Observable
*/
export function find<T>(this: Observable<T>, predicate: (value: T, index: number, source: Observable<T>) => boolean,
thisArg?: any): Observable<T> {
thisArg?: any): Observable<T | undefined> {
return higherOrder(predicate, thisArg)(this);
}

0 comments on commit 6d6d08f

Please sign in to comment.