// Type definitions for angularjs extensions to rxjs // Project: http://reactivex.io/ // Definitions by: Mick Delaney // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// /// declare namespace Rx { interface IObservable { safeApply($scope: ng.IScope, callback: (data: T) => void): Rx.Observable; } export interface ScopeScheduler extends IScheduler { constructor(scope: ng.IScope) : ScopeScheduler; } export interface ScopeSchedulerStatic extends SchedulerStatic { new ($scope: angular.IScope): ScopeScheduler; } export var ScopeScheduler: ScopeSchedulerStatic; } declare namespace rx.angular { export interface IRxScope extends ng.IScope { $toObservable(property: string): Rx.Observable; } }