JSPM

@types/rx-lite-testing

4.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 30578
  • Score
    100M100P100Q155194F
  • License MIT

TypeScript definitions for rx-lite-testing

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/rx-lite-testing) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Installation

    npm install --save @types/rx-lite-testing

    Summary

    This package contains type definitions for rx-lite-testing (https://github.com/Reactive-Extensions/RxJS).

    Details

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

    index.d.ts

    /// <reference types="rx-lite-virtualtime" />
    
    declare namespace Rx {
        interface TestScheduler extends VirtualTimeScheduler<number, number> {
            createColdObservable<T>(...records: Recorded[]): Observable<T>;
            createHotObservable<T>(...records: Recorded[]): Observable<T>;
            createObserver<T>(): MockObserver<T>;
    
            startWithTiming<T>(
                create: () => Observable<T>,
                createdAt: number,
                subscribedAt: number,
                disposedAt: number,
            ): MockObserver<T>;
            startWithDispose<T>(create: () => Observable<T>, disposedAt: number): MockObserver<T>;
            startWithCreate<T>(create: () => Observable<T>): MockObserver<T>;
        }
    
        const TestScheduler: {
            new(): TestScheduler;
        };
    
        class Recorded {
            constructor(time: number, value: any, equalityComparer?: (x: any, y: any) => boolean);
            equals(other: Recorded): boolean;
            toString(): string;
            time: number;
            value: any;
        }
    
        const ReactiveTest: {
            created: number;
            subscribed: number;
            disposed: number;
    
            onNext(ticks: number, value: any): Recorded;
            onError(ticks: number, exception: any): Recorded;
            onCompleted(ticks: number): Recorded;
    
            subscribe(subscribeAt: number, unsubscribeAt?: number): Subscription;
        };
    
        class Subscription {
            constructor(subscribeAt: number, unsubscribeAt?: number);
            equals(other: Subscription): boolean;
        }
    
        interface MockObserver<T> extends Observer<T> {
            messages: Recorded[];
        }
    
        interface MockObserverStatic extends ObserverStatic {
            new<T>(scheduler: IScheduler): MockObserver<T>;
        }
    
        const MockObserver: MockObserverStatic;
    }
    
    declare module "rx-lite-testing" {
        export = Rx;
    }
    

    Additional Details

    Credits

    These definitions were written by Igor Oleinikov.