UNPKG

cron-parser

Version:

Node.js library for parsing crontab instructions

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