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