UNPKG

@itrocks/action

Version:

An abstract class for applying actions in your framework, with @Actions and @Need decorators for assignment

15 lines 491 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NOTHING = void 0; exports.Need = Need; exports.needOf = needOf; const class_1 = require("@itrocks/decorator/class"); const NEED = Symbol('need'); exports.NOTHING = ''; function Need(need, alternative) { return (0, class_1.decorate)(NEED, { alternative, need }); } function needOf(target) { return (0, class_1.decoratorOf)(target, NEED, { need: exports.NOTHING }); } //# sourceMappingURL=need.js.map