From 64b0b3c08871338358fdaf8af5af6ae0b17c8a8e Mon Sep 17 00:00:00 2001 From: Igor Oleinikov Date: Fri, 6 Dec 2013 15:05:59 +0400 Subject: [PATCH] rx.js: fixed rx.js.time.d.ts errors related to switch on TS 0.9.5; some over minor fixes --- rx.js/rx.js.time.d.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/rx.js/rx.js.time.d.ts b/rx.js/rx.js.time.d.ts index 6e9a6e9f2..e329a823c 100644 --- a/rx.js/rx.js.time.d.ts +++ b/rx.js/rx.js.time.d.ts @@ -42,11 +42,11 @@ declare module Rx { timeout(dueTime: number, other?: IObservable, scheduler?: IScheduler): IObservable; delaySubscription(dueTime: number, scheduler?: IScheduler): IObservable; - delayWithSelector(delayDurationSelector: (T) => number): IObservable; - delayWithSelector(subscriptionDelay: number, delayDurationSelector: (T) => number): IObservable; + delayWithSelector(delayDurationSelector: (item: T) => number): IObservable; + delayWithSelector(subscriptionDelay: number, delayDurationSelector: (item: T) => number): IObservable; - timeoutWithSelector(firstTimeout: IObservable, timeoutdurationSelector?: (T) => IObservable, other?: IObservable): IObservable; - throttleWithSelector(throttleDurationSelector: (T) => IObservable): IObservable; + timeoutWithSelector(firstTimeout: IObservable, timeoutdurationSelector?: (item: T) => IObservable, other?: IObservable): IObservable; + throttleWithSelector(throttleDurationSelector: (item: T) => IObservable): IObservable; skipLastWithTime(duration: number, scheduler?: IScheduler): IObservable; takeLastWithTime(duration: number, timerScheduler?: IScheduler, loopScheduler?: IScheduler): IObservable; @@ -69,18 +69,18 @@ declare module Rx { generateWithAbsoluteTime( initialState: TState, - condition: (TState) => boolean, - iterate: (TState) => TState, - resultSelector: (TState) => TResult, - timeSelector: (TState) => Date, + condition: (state: TState) => boolean, + iterate: (state: TState) => TState, + resultSelector: (state: TState) => TResult, + timeSelector: (state: TState) => Date, scheduler?: IScheduler): IObservable; generateWithRelativeTime( initialState: TState, - condition: (TState) => boolean, - iterate: (TState) => TState, - resultSelector: (TState) => TResult, - timeSelector: (TState) => number, + condition: (state: TState) => boolean, + iterate: (state: TState) => TState, + resultSelector: (state: TState) => TResult, + timeSelector: (state: TState) => number, scheduler?: IScheduler): IObservable; } } \ No newline at end of file