UNPKG

redis-smq

Version:

A high-performance, reliable, and scalable message queue for Node.js.

9 lines 492 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._isAllowedTransition = _isAllowedTransition; const state_transition_rules_js_1 = require("../state-transition-rules.js"); function _isAllowedTransition(from, to) { var _a, _b; return (_b = (_a = state_transition_rules_js_1.STATE_TRANSITION_RULES[from]) === null || _a === void 0 ? void 0 : _a.includes(to)) !== null && _b !== void 0 ? _b : false; } //# sourceMappingURL=_is-allowed-transition.js.map