/// /// /// declare module Rx { interface IObservable { safeApply($scope: ng.IScope, callback: (data: any) => void); } } declare module rx.angular { export interface IRxScope extends ng.IScope { $toObservable(property: string): Rx.Observable; } }