mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-26 12:10:44 +08:00
Move angular-rx to rx-angular, match Rx conventions
This commit is contained in:
1 parent
61f9df84ae
commit
f1b0c27ff1
2 files changed
No files matched your search
Vendored
+23
@@ -0,0 +1,23 @@
|
||||
// Type definitions for angularjs extensions to rxjs
|
||||
// Project: http://reactivex.io/
|
||||
// Definitions by: Mick Delaney <https://github.com/mickdelaney/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../angularjs/angular.d.ts" />
|
||||
/// <reference path="../rx/rx.d.ts" />
|
||||
/// <reference path="../rx/rx.time.d.ts" />
|
||||
|
||||
declare module Rx {
|
||||
|
||||
interface IObservable<T> {
|
||||
safeApply($scope: ng.IScope, callback: (data: any) => void): Rx.Observable<any>;
|
||||
}
|
||||
}
|
||||
|
||||
declare module rx.angular {
|
||||
|
||||
export interface IRxScope extends ng.IScope {
|
||||
$toObservable(property: string): Rx.Observable<any>;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user