DefinitelyTyped/types/node-cron/index.d.ts
maximelkin f69b0ea7b6 add @types/node-cron (#23062)
* add node-cron

* Update tslint.json

Remove lint rule
2018-01-23 10:43:37 -08:00

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;
}