@methodus/framework-decorators
Version:
Server Decorators for methodus
23 lines • 777 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClientConfiguration = void 0;
require("reflect-metadata");
function ClientConfiguration(controller, transportType, resolver) {
return function (target) {
var original = target.prototype.constructor;
original.prototype.options = original.prototype.options || {
servers: [],
classes: [],
clients: [],
plugins: [],
};
original.prototype.options.clients.push({
classType: controller,
controller: controller,
transportType: transportType,
resolver: resolver,
});
};
}
exports.ClientConfiguration = ClientConfiguration;
//# sourceMappingURL=client.js.map