node-cron-management
Version:
Improvement of node-cron package
19 lines (18 loc) • 646 B
TypeScript
import "reflect-metadata";
export declare const JOB_SYMBOL: unique symbol;
export interface Handler {
handlerTag: string | undefined;
cronExpression: string;
func: string;
constructor: Function;
className: string;
timezone: string;
}
/**
*
* Decorator for the cron job method
* @param cronExpression : Expression defining how often the function should run
* @param handlerTag : tag to uniquely identify the handler so the handler can be started or stopped using the tag
* @returns : MethodDecorator
*/
export declare function cronJob(cronExpression: string, handlerTag?: string, timezone?: string): MethodDecorator;