npm.io
0.0.34 • Published 2 years ago

@types/rx-angular

Licence
MIT
Version
0.0.34
Deps
2
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/rx-angular

Summary

This package contains type definitions for rx-angular (http://reactivex.io/).

Details

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

index.d.ts

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

declare namespace Rx {
    interface IObservable<T> {
        safeApply($scope: ng.IScope, callback: (data: T) => void): Rx.Observable<T>;
    }

    export interface ScopeScheduler extends IScheduler {}

    export interface ScopeSchedulerStatic extends SchedulerStatic {
        new($scope: angular.IScope): ScopeScheduler;
    }

    export var ScopeScheduler: ScopeSchedulerStatic;
}

declare namespace rx.angular {
    export interface IRxScope extends ng.IScope {
        $toObservable(property: string): Rx.Observable<any>;
    }
}

Additional Details

Credits

These definitions were written by Mick Delaney.