UNPKG

@methodus/server

Version:
13 lines 541 B
"use strict"; 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