mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
16 lines
489 B
TypeScript
16 lines
489 B
TypeScript
// Type definitions for node-cron 1.2
|
|
// Project: http://merencia.com/node-cron/
|
|
// Definitions by: morsic <https://github.com/maximelkin>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
// immediateStart - default true
|
|
export function schedule(a: string, func: () => void, immediateStart?: boolean): ScheduledTask;
|
|
|
|
export function validate(a: string): boolean;
|
|
|
|
export interface ScheduledTask {
|
|
start: () => this;
|
|
stop: () => this;
|
|
destroy: () => void;
|
|
}
|