@midwayjs/web
Version:
Midway Web Framework for Egg.js
16 lines • 569 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RunInEggAgent = exports.AgentApp = void 0;
const core_1 = require("@midwayjs/core");
const interface_1 = require("./interface");
function AgentApp() {
return (0, core_1.createCustomPropertyDecorator)(interface_1.EGG_AGENT_APP_KEY, {});
}
exports.AgentApp = AgentApp;
function RunInEggAgent() {
return function (target) {
(0, core_1.saveModule)(interface_1.RUN_IN_AGENT_KEY, target);
};
}
exports.RunInEggAgent = RunInEggAgent;
//# sourceMappingURL=decorator.js.map