node-cron
Version:
A Lightweight Task Scheduler for Node.js
12 lines (11 loc) • 361 B
TypeScript
import { ScheduledTask } from "./tasks/scheduled-task";
declare const tasks: Map<string, ScheduledTask>;
export declare class TaskRegistry {
add(task: ScheduledTask): void;
get(taskId: string): ScheduledTask | undefined;
remove(task: ScheduledTask): void;
all(): typeof tasks;
has(taskId: string): boolean;
killAll(): void;
}
export {};