From b17b669edff5f7e05c8f054e004f78f00161300f Mon Sep 17 00:00:00 2001 From: David Pfeffer Date: Wed, 16 Sep 2015 19:17:42 -0400 Subject: [PATCH] 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 {