diff --git a/rx-lite.d.ts b/rx-lite.d.ts index 68273c2fb..78b0c5a8c 100644 --- a/rx-lite.d.ts +++ b/rx-lite.d.ts @@ -60,6 +60,7 @@ declare module Rx { function isPromise(p: any): boolean; function asArray(...args: T[]): T[]; function not(value: any): boolean; + function isFunction(value: any): boolean; } export interface IDisposable { @@ -180,7 +181,7 @@ declare module Rx { interface ObserverStatic { create(onNext?: (value: T) => void, onError?: (exception: any) => void, onCompleted?: () => void): Observer; - fromNotifier(handler: (notification: Notification) => void): Observer; + fromNotifier(handler: (notification: Notification, thisArg?: any) => void): Observer; } export var Observer: ObserverStatic; @@ -188,6 +189,10 @@ declare module Rx { export interface IObservable { subscribe(observer: Observer): IDisposable; subscribe(onNext?: (value: T) => void, onError?: (exception: any) => void, onCompleted?: () => void): IDisposable; + + subscribeOnNext(onNext: (value: T) => void, thisArg?: any): IDisposable; + subscribeOnError(onError: (exception: any) => void, thisArg?: any): IDisposable; + subscribeOnCompleted(onCompleted: () => void, thisArg?: any): IDisposable; } export interface Observable extends IObservable {