kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
3.1 KiB
62 lines
3.1 KiB
// Generated by typings
|
|
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/99c4fb76b5d941939ba53e61d0daee4bd74f150f/rx/rx.d.ts
|
|
declare module Rx {
|
|
export interface IScheduler {
|
|
catch(handler: (exception: any) => boolean): IScheduler;
|
|
catchException(handler: (exception: any) => boolean): IScheduler;
|
|
}
|
|
|
|
// Observer
|
|
export interface Observer<T> {
|
|
checked(): Observer<any>;
|
|
}
|
|
|
|
interface ObserverStatic {
|
|
/**
|
|
* Schedules the invocation of observer methods on the given scheduler.
|
|
* @param scheduler Scheduler to schedule observer messages on.
|
|
* @returns Observer whose messages are scheduled on the given scheduler.
|
|
*/
|
|
notifyOn<T>(scheduler: IScheduler): Observer<T>;
|
|
}
|
|
|
|
export interface Observable<T> {
|
|
observeOn(scheduler: IScheduler): Observable<T>;
|
|
subscribeOn(scheduler: IScheduler): Observable<T>;
|
|
|
|
amb(rightSource: Observable<T>): Observable<T>;
|
|
amb(rightSource: IPromise<T>): Observable<T>;
|
|
onErrorResumeNext(second: Observable<T>): Observable<T>;
|
|
onErrorResumeNext(second: IPromise<T>): Observable<T>;
|
|
bufferWithCount(count: number, skip?: number): Observable<T[]>;
|
|
windowWithCount(count: number, skip?: number): Observable<Observable<T>>;
|
|
defaultIfEmpty(defaultValue?: T): Observable<T>;
|
|
distinct(skipParameter: boolean, valueSerializer: (value: T) => string): Observable<T>;
|
|
distinct<TKey>(keySelector?: (value: T) => TKey, keySerializer?: (key: TKey) => string): Observable<T>;
|
|
groupBy<TKey, TElement>(keySelector: (value: T) => TKey, skipElementSelector?: boolean, keySerializer?: (key: TKey) => string): Observable<GroupedObservable<TKey, T>>;
|
|
groupBy<TKey, TElement>(keySelector: (value: T) => TKey, elementSelector: (value: T) => TElement, keySerializer?: (key: TKey) => string): Observable<GroupedObservable<TKey, TElement>>;
|
|
groupByUntil<TKey, TDuration>(keySelector: (value: T) => TKey, skipElementSelector: boolean, durationSelector: (group: GroupedObservable<TKey, T>) => Observable<TDuration>, keySerializer?: (key: TKey) => string): Observable<GroupedObservable<TKey, T>>;
|
|
groupByUntil<TKey, TElement, TDuration>(keySelector: (value: T) => TKey, elementSelector: (value: T) => TElement, durationSelector: (group: GroupedObservable<TKey, TElement>) => Observable<TDuration>, keySerializer?: (key: TKey) => string): Observable<GroupedObservable<TKey, TElement>>;
|
|
}
|
|
|
|
interface ObservableStatic {
|
|
using<TSource, TResource extends IDisposable>(resourceFactory: () => TResource, observableFactory: (resource: TResource) => Observable<TSource>): Observable<TSource>;
|
|
amb<T>(...sources: Observable<T>[]): Observable<T>;
|
|
amb<T>(...sources: IPromise<T>[]): Observable<T>;
|
|
amb<T>(sources: Observable<T>[]): Observable<T>;
|
|
amb<T>(sources: IPromise<T>[]): Observable<T>;
|
|
onErrorResumeNext<T>(...sources: Observable<T>[]): Observable<T>;
|
|
onErrorResumeNext<T>(...sources: IPromise<T>[]): Observable<T>;
|
|
onErrorResumeNext<T>(sources: Observable<T>[]): Observable<T>;
|
|
onErrorResumeNext<T>(sources: IPromise<T>[]): Observable<T>;
|
|
}
|
|
|
|
interface GroupedObservable<TKey, TElement> extends Observable<TElement> {
|
|
key: TKey;
|
|
underlyingObservable: Observable<TElement>;
|
|
}
|
|
}
|
|
|
|
declare module "rx" {
|
|
export = Rx
|
|
} |