Merge pull request #2397 from Igorbek/knockout.rx

knockout.rx updated to v1.0
This commit is contained in:
Igorbek
2014-06-24 00:53:46 +04:00
+6 -1
View File
@@ -1,4 +1,4 @@
// Type definitions for knockout.rx 0.1
// Type definitions for knockout.rx 1.0
// Project: https://github.com/Igorbek/knockout.rx
// Definitions by: Igor Oleinikov <https://github.com/Igorbek>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
@@ -13,6 +13,7 @@ interface KnockoutSubscribableFunctions<T> {
interface KnockoutObservableFunctions<T> {
toObservableWithReplyLatest(): Rx.Observable<T>;
toSubject(): Rx.ISubject<T>;
}
interface KnockoutComputedFunctions<T> {
@@ -24,4 +25,8 @@ declare module Rx {
toKoSubscribable(): KnockoutSubscribable<T>;
toKoObservable(initialValue?: T): KnockoutObservable<T>;
}
interface Subject<T> {
toKoObservable(initialValue?: T): KnockoutObservable<T>;
}
}