UNPKG

@mbc-cqrs-serverless/core

Version:
14 lines 692 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NotificationTransport = NotificationTransport; const common_1 = require("@nestjs/common"); const constants_1 = require("./constants"); /** * Decorator to register a class as a Notification Transport. * Automatically marks the class as an @Injectable() provider. * @param name The unique identifier for this transport (e.g., 'pusher', 'appsync-event') */ function NotificationTransport(name) { return (0, common_1.applyDecorators)((0, common_1.SetMetadata)(constants_1.NOTIFICATION_TRANSPORT_METADATA, name), (0, common_1.Injectable)()); } //# sourceMappingURL=notification-transport.decorator.js.map