Skip to content

Commit

Permalink
feat(find): Observable<T>.find() can take type guard as the predicate…
Browse files Browse the repository at this point in the history
… function
  • Loading branch information
tetsuharuohzeki committed Sep 16, 2016
1 parent d62fbf0 commit b952718
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/operator/find.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export function find<T>(predicate: (value: T, index: number, source: Observable<

export interface FindSignature<T> {
(predicate: (value: T, index: number, source: Observable<T>) => boolean, thisArg?: any): Observable<T>;
<S extends T>(predicate: (value: T, index: number, source: Observable<T>) => value is S, thisArg?: any): Observable<S>;
}

export class FindValueOperator<T> implements Operator<T, T> {
Expand Down

0 comments on commit b952718

Please sign in to comment.