Inital Commit

This commit is contained in:
root
2025-06-24 15:43:32 +02:00
commit 23341b8abb
4657 changed files with 549083 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import { ScheduledTask, TaskFn } from "./tasks/scheduled-task";
export type Options = {
name?: string;
timezone?: string;
noOverlap?: boolean;
maxExecutions?: number;
};
export declare function schedule(expression: string, func: TaskFn | string, options?: Options): ScheduledTask;
export declare function createTask(expression: string, func: TaskFn | string, options?: Options): ScheduledTask;
export declare function validate(expression: string): boolean;
export { ScheduledTask } from './tasks/scheduled-task';
export type { TaskFn, TaskContext, TaskOptions } from './tasks/scheduled-task';
export interface NodeCron {
schedule: typeof schedule;
createTask: typeof createTask;
validate: typeof validate;
}
export declare const nodeCron: NodeCron;
export default nodeCron;