Installation
npm install --save @types/rx-angular
Summary
This package contains type definitions for rx-angular (http://reactivex.io/).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rx-angular.
declare namespace Rx {
interface IObservable<T> {
safeApply($scope: ng.IScope, callback: (data: T) => void): Rx.Observable<T>;
}
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<any>;
}
}
Additional Details
Credits
These definitions were written by Mick Delaney.