// Type definitions for angularjs extensions to rxjs // Project: http://reactivex.io/ // Definitions by: Mick Delaney // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 /// /// declare namespace Rx { interface IObservable { safeApply($scope: ng.IScope, callback: (data: T) => void): Rx.Observable; } export interface ScopeScheduler extends IScheduler {} 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; } }