// Type definitions for knockout.rx 0.1 // 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; } interface KnockoutComputedFunctions { toObservableWithReplyLatest(): Rx.Observable; } declare module Rx { interface Observable { toKoSubscribable(): KnockoutSubscribable; toKoObservable(initialValue?: T): KnockoutObservable; } }