Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

Commit

Permalink
Merge pull request #133 from Igorbek/master
Browse files Browse the repository at this point in the history
TypeScript definition files updated to version 2.2.18
  • Loading branch information
mattpodwysocki committed Apr 1, 2014
2 parents ce04b06 + c365b0b commit 3239ccc
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 25 deletions.
18 changes: 18 additions & 0 deletions ts/rx-lite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,19 @@ declare module Rx {
export var Promise: { new <T>(resolver: (resolvePromise: (value: T) => void, rejectPromise: (reason: any) => void) => void): IPromise<T>; };
}

export module helpers {
function noop(): void;
function identity<T>(value: T): T;
function defaultNow(): number;
function defaultComparer(left: any, right: any): boolean;
function defaultSubComparer(left: any, right: any): number;
function defaultKeySerializer(key: any): string;
function defaultError(err: any): void;
function isPromise(p: any): boolean;
function asArray<T>(...args: T[]): T[];
function not(value: any): boolean;
}

export interface IDisposable {
dispose(): void;
}
Expand Down Expand Up @@ -307,6 +320,7 @@ declare module Rx {
create<T>(subscribe: (observer: Observer<T>) => IDisposable): Observable<T>;
createWithDisposable<T>(subscribe: (observer: Observer<T>) => IDisposable): Observable<T>;
defer<T>(observableFactory: () => Observable<T>): Observable<T>;
defer<T>(observableFactory: () => IPromise<T>): Observable<T>;
empty<T>(scheduler?: IScheduler): Observable<T>;
fromArray<T>(array: T[], scheduler?: IScheduler): Observable<T>;
fromArray<T>(array: { length: number;[index: number]: T; }, scheduler?: IScheduler): Observable<T>;
Expand Down Expand Up @@ -347,9 +361,13 @@ declare module Rx {
throwException<T>(exception: any, scheduler?: IScheduler): Observable<T>; // alias for throw

catch<T>(sources: Observable<T>[]): Observable<T>;
catch<T>(sources: IPromise<T>[]): Observable<T>;
catchException<T>(sources: Observable<T>[]): Observable<T>; // alias for catch
catchException<T>(sources: IPromise<T>[]): Observable<T>; // alias for catch
catch<T>(...sources: Observable<T>[]): Observable<T>;
catch<T>(...sources: IPromise<T>[]): Observable<T>;
catchException<T>(...sources: Observable<T>[]): Observable<T>; // alias for catch
catchException<T>(...sources: IPromise<T>[]): Observable<T>; // alias for catch
concat<T>(...sources: Observable<T>[]): Observable<T>;
concat<T>(...sources: IPromise<T>[]): Observable<T>;
concat<T>(sources: Observable<T>[]): Observable<T>;
Expand Down
2 changes: 1 addition & 1 deletion ts/rx.async.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for RxJS-Async v2.2.17
// Type definitions for RxJS-Async v2.2.18
// Project: http://rx.codeplex.com/
// Definitions by: zoetrope <https://github.com/zoetrope>
// Definitions by: Igor Oleinikov <https://github.com/Igorbek>
Expand Down
2 changes: 1 addition & 1 deletion ts/rx.backpressure.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for RxJS-BackPressure v2.2.15
// Type definitions for RxJS-BackPressure v2.2.18
// Project: http://rx.codeplex.com/
// Definitions by: Igor Oleinikov <https://github.com/Igorbek>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
Expand Down
2 changes: 1 addition & 1 deletion ts/rx.binding.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for RxJS-Binding v2.2.17
// Type definitions for RxJS-Binding v2.2.18
// Project: http://rx.codeplex.com/
// Definitions by: Carl de Billy <http://carl.debilly.net/>
// Definitions by: Igor Oleinikov <https://github.com/Igorbek>
Expand Down
2 changes: 1 addition & 1 deletion ts/rx.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for RxJS v2.2.17
// Type definitions for RxJS v2.2.18
// Project: http://rx.codeplex.com/
// Definitions by: gsino <http://www.codeplex.com/site/users/view/gsino>
// Definitions by: Igor Oleinikov <https://github.com/Igorbek>
Expand Down
12 changes: 1 addition & 11 deletions ts/rx.lite.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for RxJS-Lite v2.2.17
// Type definitions for RxJS-Lite v2.2.18
// Project: http://rx.codeplex.com/
// Definitions by: gsino <http://www.codeplex.com/site/users/view/gsino>
// Definitions by: Igor Oleinikov <https://github.com/Igorbek>
Expand Down Expand Up @@ -47,14 +47,4 @@ declare module Rx {
export interface Observable<T> {
shareReplay(bufferSize?: number, window?: number, scheduler?: IScheduler): Observable<T>; // same as replayWhileObserved in rx.binding.d.ts
}

export interface ObservableStatic {
generateWithTime<TState, TResult>(
initialState: TState,
condition: (state: TState) => boolean,
iterate: (state: TState) => TState,
resultSelector: (state: TState) => TResult,
timeSelector: (state: TState) => number,
scheduler?: IScheduler): Observable<TResult>;
}
}
7 changes: 7 additions & 0 deletions ts/rx.time-lite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,12 @@ declare module Rx {
interval(dutTime: number, period: number, scheduler?: IScheduler): Observable<number>;
timer(dueTime: number, period: number, scheduler: IScheduler): Observable<number>;
timer(dueTime: number, scheduler: IScheduler): Observable<number>;
generateWithRelativeTime<TState, TResult>(
initialState: TState,
condition: (state: TState) => boolean,
iterate: (state: TState) => TState,
resultSelector: (state: TState) => TResult,
timeSelector: (state: TState) => number,
scheduler?: IScheduler): Observable<TResult>;
}
}
10 changes: 1 addition & 9 deletions ts/rx.time.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for RxJS-Time v2.2.17
// Type definitions for RxJS-Time v2.2.18
// Project: http://rx.codeplex.com/
// Definitions by: Carl de Billy <http://carl.debilly.net/>
// Definitions by: Igor Oleinikov <https://github.com/Igorbek>
Expand Down Expand Up @@ -28,13 +28,5 @@ declare module Rx {
resultSelector: (state: TState) => TResult,
timeSelector: (state: TState) => Date,
scheduler?: IScheduler): Observable<TResult>;

generateWithRelativeTime<TState, TResult>(
initialState: TState,
condition: (state: TState) => boolean,
iterate: (state: TState) => TState,
resultSelector: (state: TState) => TResult,
timeSelector: (state: TState) => number,
scheduler?: IScheduler): Observable<TResult>;
}
}
2 changes: 1 addition & 1 deletion ts/rx.virtualtime.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for RxJS-VirtualTime package 2.2
// Type definitions for RxJS-VirtualTime package 2.2.18
// Project: http://rx.codeplex.com/
// Definitions by: gsino <http://www.codeplex.com/site/users/view/gsino>
// Definitions by: Igor Oleinikov <https://github.com/Igorbek>
Expand Down

0 comments on commit 3239ccc

Please sign in to comment.