UNPKG

cron-parser

Version:

Node.js library for parsing crontab instructions

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