From b952718d35ddda77124a043afbe0a7832620fe3b Mon Sep 17 00:00:00 2001 From: Tetsuharu OHZEKI Date: Wed, 14 Sep 2016 14:02:00 +0900 Subject: [PATCH] feat(find): Observable.find() can take type guard as the predicate function --- src/operator/find.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/operator/find.ts b/src/operator/find.ts index 5d475bb6d1..3d99ed59a4 100644 --- a/src/operator/find.ts +++ b/src/operator/find.ts @@ -45,6 +45,7 @@ export function find(predicate: (value: T, index: number, source: Observable< export interface FindSignature { (predicate: (value: T, index: number, source: Observable) => boolean, thisArg?: any): Observable; + (predicate: (value: T, index: number, source: Observable) => value is S, thisArg?: any): Observable; } export class FindValueOperator implements Operator {