// Type definitions for node-cron 2.0 // Project: https://github.com/node-cron/node-cron // Definitions by: morsic , // burtek // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export function schedule(cronExpression: string, func: () => void, options?: ScheduleOptions): ScheduledTask; export function validate(cronExpression: string): boolean; export interface ScheduledTask { start: () => this; stop: () => this; destroy: () => void; } export interface ScheduleOptions { /** * A boolean to set if the created task is scheduled. * * Defaults to `true` */ scheduled?: boolean; /** * The timezone that is used for job scheduling */ timezone?: string; }