UNPKG

@ivamuno/nestjs-openapi

Version:
16 lines (15 loc) 628 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AsyncApiSub = exports.AsyncApiPub = void 0; const helpers_1 = require("@nestjs/swagger/dist/decorators/helpers"); const constants_1 = require("./constants"); function AsyncApiPub(options) { const result = helpers_1.createMixedDecorator(constants_1.DECORATORS.ASYNCAPI_PUB, options); return result; } exports.AsyncApiPub = AsyncApiPub; function AsyncApiSub(options) { const result = helpers_1.createMixedDecorator(constants_1.DECORATORS.ASYNCAPI_SUB, options); return result; } exports.AsyncApiSub = AsyncApiSub;