From b17b669edff5f7e05c8f054e004f78f00161300f Mon Sep 17 00:00:00 2001 From: David Pfeffer Date: Wed, 16 Sep 2015 19:17:42 -0400 Subject: [PATCH 1/2] Exposes ScopeScheduler to TypeScript --- rx-angular/rx.angular.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rx-angular/rx.angular.d.ts b/rx-angular/rx.angular.d.ts index e2d0ec8c5e..413abf30bb 100644 --- a/rx-angular/rx.angular.d.ts +++ b/rx-angular/rx.angular.d.ts @@ -12,6 +12,16 @@ declare module Rx { interface IObservable { safeApply($scope: ng.IScope, callback: (data: any) => void): Rx.Observable; } + + export interface ScopeScheduler extends IScheduler { + constructor(scope: ng.IScope); + } + + export interface ScopeSchedulerStatic extends SchedulerStatic { + new ($scope: angular.IScope): ScopeScheduler; + } + + export var ScopeScheduler: ScopeSchedulerStatic; } declare module rx.angular { From d3ba5a24d7aea88ff5818ee08f7e4925230f2c1e Mon Sep 17 00:00:00 2001 From: David Pfeffer Date: Sun, 20 Sep 2015 20:20:31 -0400 Subject: [PATCH 2/2] Fixed constructor implicit return type issue --- rx-angular/rx.angular.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rx-angular/rx.angular.d.ts b/rx-angular/rx.angular.d.ts index 413abf30bb..9e76a95b6a 100644 --- a/rx-angular/rx.angular.d.ts +++ b/rx-angular/rx.angular.d.ts @@ -14,7 +14,7 @@ declare module Rx { } export interface ScopeScheduler extends IScheduler { - constructor(scope: ng.IScope); + constructor(scope: ng.IScope) : ScopeScheduler; } export interface ScopeSchedulerStatic extends SchedulerStatic {