UNPKG

cron-parser

Version:

Node.js library for parsing crontab instructions

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