forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rx.angular.d.ts
33 lines (24 loc) · 959 Bytes
/
rx.angular.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Type definitions for angularjs extensions to rxjs
// Project: http://reactivex.io/
// Definitions by: Mick Delaney <https://github.com/mickdelaney/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../rx/rx.d.ts" />
/// <reference path="../rx/rx.time.d.ts" />
declare namespace Rx {
interface IObservable<T> {
safeApply($scope: ng.IScope, callback: (data: T) => void): Rx.Observable<T>;
}
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<any>;
}
}