mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-22 22:36:06 +08:00
14 lines
287 B
TypeScript
14 lines
287 B
TypeScript
export enum ScheduleType {
|
|
BOOT = '@boot',
|
|
ONCE = '@once',
|
|
}
|
|
|
|
export type ScheduleValidator = (schedule?: string) => boolean;
|
|
export type CronSchedulerPayload = {
|
|
name: string;
|
|
id: string;
|
|
schedule: string;
|
|
command: string;
|
|
extra_schedules: Array<{ schedule: string }>;
|
|
};
|