// Type definitions for knockout.rx 1.0 // Project: https://github.com/Igorbek/knockout.rx // Definitions by: Igor Oleinikov // Definitions: https://github.com/borisyankov/DefinitelyTyped /// /// interface KnockoutSubscribableFunctions { toObservable(event?: string): Rx.Observable; toObservable(event: string): Rx.Observable; } interface KnockoutObservableFunctions { toObservableWithReplyLatest(): Rx.Observable; toSubject(): Rx.ISubject; } interface KnockoutComputedFunctions { toObservableWithReplyLatest(): Rx.Observable; } declare module Rx { interface Observable { toKoSubscribable(): KnockoutSubscribable; toKoObservable(initialValue?: T): KnockoutObservable; } interface Subject { toKoObservable(initialValue?: T): KnockoutObservable; } }