@types/knockout.rx
TypeScript icon, indicating that this package has built-in type declarations

1.0.33 • Public • Published

Installation

npm install --save @types/knockout.rx

Summary

This package contains type definitions for knockout.rx (https://github.com/Igorbek/knockout.rx).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/knockout.rx.

index.d.ts

/// <reference types="knockout"/>
/// <reference types="rx"/>

interface KnockoutSubscribableFunctions<T> {
    toObservable(event?: string): Rx.Observable<T>;
    toObservable<TEvent>(event: string): Rx.Observable<TEvent>;
}

interface KnockoutObservableFunctions<T> {
    toObservableWithReplyLatest(): Rx.Observable<T>;
    toSubject(): Rx.ISubject<T>;
}

interface KnockoutComputedFunctions<T> {
    toObservableWithReplyLatest(): Rx.Observable<T>;
}

declare namespace Rx {
    interface Observable<T> {
        toKoSubscribable(): KnockoutSubscribable<T>;
        toKoObservable(initialValue?: T): KnockoutObservable<T>;
    }

    interface Subject<T> {
        toKoObservable(initialValue?: T): KnockoutObservable<T>;
    }
}

Additional Details

Credits

These definitions were written by Igor Oleinikov.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/knockout.rx

Weekly Downloads

15

Version

1.0.33

License

MIT

Unpacked Size

4.21 kB

Total Files

5

Last publish

Collaborators

  • types