| 13 | } |
| 14 | |
| 15 | export interface IJob { |
| 16 | /** |
| 17 | * The function to fire at the specified time. If an onComplete callback was provided, onTick will receive it as an argument. onTick may call onComplete when it has finished its work. |
| 18 | */ |
| 19 | onTick(); |
| 20 | |
| 21 | /** |
| 22 | * A function that will fire when the job is stopped with job.stop(), and may also be called by onTick at the end of each run. |
| 23 | */ |
| 24 | onComplete?(result: any); |
| 25 | } |
| 26 | |
| 27 | export type JobNameOrClz = string | (new (...args) => IJob); |
| 28 |
no outgoing calls
no test coverage detected