@methodus/server
Version:
Server components for @methodus workflow
13 lines • 541 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
require("reflect-metadata");
function ServerConfiguration(serverType, options) {
return (target) => {
const original = target.prototype.constructor;
original.prototype.options = original.prototype.options ||
{ servers: [], classes: [], clients: [], plugins: [] };
original.prototype.options.servers.push({ serverType, options });
};
}
exports.ServerConfiguration = ServerConfiguration;
//# sourceMappingURL=server.js.map