From a800d58e7d50489a20597791931bdfe4640513d1 Mon Sep 17 00:00:00 2001 From: Igor Oleinikov Date: Thu, 2 Oct 2014 11:38:26 -0700 Subject: [PATCH] Fixed selectSwitch/flatMapLatest definition (fixes Reactive-Extensions/RxJS#304). --- rx-lite.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rx-lite.d.ts b/rx-lite.d.ts index 4b5acb81d9..a472331770 100644 --- a/rx-lite.d.ts +++ b/rx-lite.d.ts @@ -316,7 +316,7 @@ declare module Rx { * @returns An observable sequence whose elements are the result of invoking the transform function on each element of source producing an Observable of Observable sequences * and that at any point in time produces the elements of the most recent inner observable sequence that has been received. */ - selectSwitch(selector: (value: T, index: number, source: Observable) => TResult, thisArg?: any): Observable; + selectSwitch(selector: (value: T, index: number, source: Observable) => Observable, thisArg?: any): Observable; /** * Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then * transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence. @@ -325,7 +325,7 @@ declare module Rx { * @returns An observable sequence whose elements are the result of invoking the transform function on each element of source producing an Observable of Observable sequences * and that at any point in time produces the elements of the most recent inner observable sequence that has been received. */ - flatMapLatest(selector: (value: T, index: number, source: Observable) => TResult, thisArg?: any): Observable; // alias for selectSwitch + flatMapLatest(selector: (value: T, index: number, source: Observable) => Observable, thisArg?: any): Observable; // alias for selectSwitch /** * Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then * transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.