UNPKG

@turbox3d/command-manager

Version:

Large-scale productivity application command management library

46 lines 1.18 kB
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck"; import _createClass from "@babel/runtime/helpers/esm/createClass"; import { Command } from './Command'; // 仅作为类型标示无参数的 Command 生命周期函数 var INoParamCommand = /*#__PURE__*/function () { function INoParamCommand() { _classCallCheck(this, INoParamCommand); } return _createClass(INoParamCommand, [{ key: "apply", value: function apply() { // } }, { key: "active", value: function active() { // } }]); }(); // 仅作为类型标示有参数的 Command 生命周期函数 var IParamCommand = /*#__PURE__*/function () { function IParamCommand() { _classCallCheck(this, IParamCommand); } return _createClass(IParamCommand, [{ key: "apply", value: function apply(param) { // } }, { key: "active", value: function active(param) { // } }]); }(); // type E = keyof Command; // type P = Pick<Command, 'dispose' | 'distributeEvent' | '$children'>; /** * 构建一个 Command 基类 * * 范型类型为激活时的函数参数 */ function create() { return Command; } export { create };