diff --git a/src/Observable.ts b/src/Observable.ts index 1269887d88..e21e2929eb 100644 --- a/src/Observable.ts +++ b/src/Observable.ts @@ -82,6 +82,9 @@ export class Observable implements Subscribable { * @param {Function} complete (optional) a handler for a terminal event resulting from successful completion. * @return {ISubscription} a subscription reference to the registered handlers */ + subscribe(): Subscription; + subscribe(observer: PartialObserver): Subscription; + subscribe(next?: (value: T) => void, error?: (error: any) => void, complete?: () => void): Subscription; subscribe(observerOrNext?: PartialObserver | ((value: T) => void), error?: (error: any) => void, complete?: () => void): Subscription {