@lou.codes/cron
Version:
⏲️ Cron Quartz and Cron UNIX expression parser
21 lines (20 loc) • 546 B
TypeScript
import type { Maybe } from "@lou.codes/types";
import type { Field } from "./Field.js";
import type { ListString } from "./ListString.js";
/**
* Turns cron list into a string.
*
* @category Cron Object
* @example
* ```typescript
* stringifyList([10, 11, 13]); // "10,11,13"
* ```
* @see {@link isListField}
* @see {@link stringifyRange}
*
* @param field List cron object field
* @returns String list or `undefined` if it isn't a list.
*/
export declare const stringifyList: (
field: Readonly<Field<number>>,
) => Maybe<ListString>;