UNPKG

cron-parser

Version:

Node.js library for parsing crontab instructions

25 lines (24 loc) 928 B
import { CronField } from './CronField'; import { CronChars, CronMax, CronMin, MonthRange } from './types'; /** * Represents the "day of the month" field within a cron expression. * @class CronDayOfMonth * @extends CronField */ export declare class CronMonth extends CronField { static get min(): CronMin; static get max(): CronMax; static get chars(): readonly CronChars[]; static get daysInMonth(): readonly number[]; /** * CronDayOfMonth constructor. Initializes the "day of the month" field with the provided values. * @param {MonthRange[]} values - Values for the "day of the month" field * @param {boolean} [wildcard=false] - Whether this field is a wildcard */ constructor(values: MonthRange[], wildcard?: boolean); /** * Returns an array of allowed values for the "day of the month" field. * @returns {MonthRange[]} */ get values(): MonthRange[]; }