/// // Type definitions for RxJS-Async package 2.2 // Project: http://rx.codeplex.com/ // Definitions by: zoetrope // Definitions: https://github.com/borisyankov/DefinitelyTyped // // Dependencies: // -> rx.js // -> rx.async.js declare module Rx { interface Observable { start(func: () => T, scheduler?: IScheduler, context?: any): IObservable; toAsync(func: Function, scheduler?: IScheduler, context?: any): (...arguments: any[]) => IObservable; fromCallback(func: (...arguments: any[]) => void, scheduler?: IScheduler, context?: any, selector?: (...arguments: T[])=>T): () => IObservable; fromNodeCallback(func: (...arguments: any[]) => void, scheduler?: IScheduler, context?: any, selector?: (...arguments: any[])=>T): (...arguments: any[]) => IObservable; fromEvent(element: any, eventName: string, selector?: (...arguments: any[])=>T): IObservable; fromEventPattern(addHandler: (handler: any)=> void, removeHandler: (handler: any)=> void, selector?: (...arguments: any[])=>T): IObservable; fromPromise(promise: any): IObservable; } }