forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cron.d.ts
27 lines (22 loc) · 804 Bytes
/
cron.d.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
// Type definitions for cron 1.0.9
// Project: https://www.npmjs.com/package/cron
// Definitions by: Hiroki Horiuchi <https://github.com/horiuchi>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "cron" {
interface CronJobStatic {
new(cronTime: string|Date, onTick: () => void, onComplete?: () => void, start?: boolean, timeZone?: string, context?: any): CronJob;
new(options: {
cronTime: string|Date; onTick: () => void; onComplete?: () => void; start?: boolean; timeZone?: string; context?: any
}): CronJob;
}
interface CronJob {
start(): void;
stop(): void;
}
export var CronJob: CronJobStatic;
interface CronTimeStatic {
new(time: string|Date): CronTime;
}
interface CronTime {}
export var CronTime: CronTimeStatic;
}