UNPKG

@fregante/mi-cron

Version:

A microscopic parser for standard cron expressions.

22 lines (21 loc) 595 B
/*! * mi-cron * * A microscopic parser for standard cron expressions. * * Copyright (c) 2020-present, cheap glitch * This software is distributed under the ISC license */ interface CronSchedule { readonly minutes: number[]; readonly hours: number[]; readonly days: number[]; readonly months: number[]; readonly weekDays: number[]; [prop: string]: number[]; } export declare function parseCron(exp: string): CronSchedule | undefined; export declare namespace parseCron { var nextDate: (exp: string | CronSchedule, from?: Date) => Date | undefined; } export {};