mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
25 lines
791 B
TypeScript
25 lines
791 B
TypeScript
// 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/DefinitelyTyped/DefinitelyTyped
|
|
|
|
|
|
|
|
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 declare var CronJob: CronJobStatic;
|
|
|
|
interface CronTimeStatic {
|
|
new (time: string | Date): CronTime;
|
|
}
|
|
interface CronTime { }
|
|
export declare var CronTime: CronTimeStatic;
|