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