Skip to content

Type Alias: CronOptions ​

CronOptions = object

The options of the validation of the cron expressions (DTO.Cron())

Properties ​

alias? ​

optional alias?: boolean

Allow the names of the months and of the days of the week (JAN, MON-FRI)


allowBlankDay? ​

optional allowBlankDay?: boolean

Allow "?" in the fields of the day of the month and of the day of the week


allowNthWeekdayOfMonth? ​

optional allowNthWeekdayOfMonth?: boolean

Allow the nth day of the week of the month in the field of the day of the week (1#2: the second Monday)


allowSevenAsSunday? ​

optional allowSevenAsSunday?: boolean

Allow 7 as Sunday in the field of the day of the week


seconds? ​

optional seconds?: boolean

Allow a field of the seconds (six fields)

Released under the MIT License.