Installation
npm install --save @types/rx-lite-virtualtime
Summary
This package contains type definitions for rx-lite-virtualtime (https://github.com/Reactive-Extensions/RxJS).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rx-lite-virtualtime.
declare namespace Rx {
interface VirtualTimeScheduler<TAbsolute, TRelative> extends Scheduler {
advanceBy(time: TRelative): void;
advanceTo(time: TAbsolute): void;
scheduleAbsolute(dueTime: TAbsolute, action: () => void): IDisposable;
scheduleAbsoluteWithState<TState>(
state: TState,
dueTime: TAbsolute,
action: (scheduler: IScheduler, state: TState) => IDisposable,
): IDisposable;
scheduleRelative(dueTime: TRelative, action: () => void): IDisposable;
scheduleRelativeWithState<TState>(
state: TState,
dueTime: TRelative,
action: (scheduler: IScheduler, state: TState) => IDisposable,
): IDisposable;
sleep(time: TRelative): void;
start(): IDisposable;
stop(): void;
isEnabled: boolean;
add(from: TAbsolute, by: TRelative): TAbsolute;
toDateTimeOffset(duetime: TAbsolute): number;
toRelative(duetime: number): TRelative;
getNext(): internals.ScheduledItem<TAbsolute>;
}
interface HistoricalScheduler extends VirtualTimeScheduler<number, number> {
}
const HistoricalScheduler: {
new(initialClock: number, comparer: (first: number, second: number) => number): HistoricalScheduler;
};
}
declare module "rx-lite-virtualtime" {
export = Rx;
}
Additional Details
- Last updated: Wed, 18 Oct 2023 11:45:06 GMT
- Dependencies: @types/rx-lite
Credits
These definitions were written by gsino, and Igor Oleinikov.