cron-parser
Version:
Node.js library for parsing crontab instructions
25 lines (24 loc) • 940 B
TypeScript
import { CronField } from './CronField';
import { CronChars, CronMax, CronMin, DayOfWeekRange } from './types';
/**
* Represents the "day of the week" field within a cron expression.
* @class CronDayOfTheWeek
* @extends CronField
*/
export declare class CronDayOfWeek extends CronField {
static get min(): CronMin;
static get max(): CronMax;
static get chars(): readonly CronChars[];
static get validChars(): RegExp;
/**
* CronDayOfTheWeek constructor. Initializes the "day of the week" field with the provided values.
* @param {DayOfWeekRange[]} values - Values for the "day of the week" field
* @param {boolean} [wildcard=false] - Whether this field is a wildcard
*/
constructor(values: DayOfWeekRange[], wildcard?: boolean);
/**
* Returns an array of allowed values for the "day of the week" field.
* @returns {DayOfWeekRange[]}
*/
get values(): DayOfWeekRange[];
}