cron-quartz-ts
Version:
A library that generates quartz corresponding cron expressions
14 lines (13 loc) • 697 B
TypeScript
type DayType = 'start_on_month' | 'specific_on_month' | 'last_day_on_month' | 'last_week_on_month' | 'last_select_day_on_month' | 'before' | 'near' | 'day_on_every_month';
interface Option {
type: 'every' | 'start' | 'specific' | 'between' | DayType;
list?: number[] | null;
cron?: string;
}
export declare const formatSeconds: (options: Option) => string;
export declare const formatMinutes: (options: Option) => string;
export declare const formatHours: (options: Option) => string;
export declare const formatDays: (options: Option) => string;
export declare const formatMonths: (options: Option) => string;
export declare const formatYears: (options: Option) => string;
export {};