UNPKG

cron-js-parser

Version:

Cron expression parser to human readable format from Expression as well as Individual values

26 lines (25 loc) 600 B
import { cycle, at, startAtRepeatCycleEvery, startCycleInRange } from "../constants/logical"; type StartAt = { startAt: number; every: number; }; type InRange = { from: number | string; to: number | string; }; type Cycle = { mode: typeof cycle; }; type At = { mode: typeof at; value: number[]; }; type StartAtRepeatCycleEvery = { mode: typeof startAtRepeatCycleEvery; value: StartAt; }; type StartCycleInRange = { mode: typeof startCycleInRange; value: InRange; }; export { Cycle, At, StartAtRepeatCycleEvery, StartCycleInRange };