"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.isValidCronExpression = void 0;
const cron_parser_1 = __importDefault(require("cron-parser"));
function isValidCronExpression(cron) {
    try {
        cron_parser_1.default.parseExpression(cron);
        return true;
    }
    catch (error) {
        return false;
    }
}
exports.isValidCronExpression = isValidCronExpression;
//# sourceMappingURL=is-valid-cron.js.map