@devgrid/netron-nest
Version:
NestJS integration module for @devgrid/netron, providing seamless distributed system capabilities with decorators, dependency injection, and automatic service discovery in NestJS applications.
15 lines • 599 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.NETRON_SERVICE_METADATA = void 0;
exports.Service = Service;
const common_1 = require("@nestjs/common");
const netron_1 = require("@devgrid/netron");
exports.NETRON_SERVICE_METADATA = 'NETRON_SERVICE_METADATA';
function Service(qualifiedName) {
const netronDecorator = (0, netron_1.Service)(qualifiedName);
return (target) => {
netronDecorator(target);
(0, common_1.SetMetadata)(exports.NETRON_SERVICE_METADATA, qualifiedName)(target);
};
}
//# sourceMappingURL=service.decorator.js.map