-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
27 lines (19 loc) · 800 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* tslint:disable:file-name-casing */
import {GetTicker} from './src/internals/GetTicker'
import {IScheduler} from './src/main/IScheduler'
import {ITestSchedulerOptions} from './src/main/ITestSchedulerOptions'
import {Scheduler} from './src/main/Scheduler'
import {TestScheduler} from './src/main/TestScheduler'
/**
* E X P O R T S
*/
export const testScheduler = (options: Partial<ITestSchedulerOptions> = {}) =>
new TestScheduler(options)
export {TestScheduler} from './src/main/TestScheduler'
/**
* Optional version of [[ITestSchedulerOptions]] which is provided as input.
*/
export type SchedulerOptions = Partial<ITestSchedulerOptions>
export {ICancellable} from './src/cancellables/ICancellable'
export {IScheduler}
export const scheduler: IScheduler = new Scheduler(GetTicker())