17 lines
619 B
JavaScript
17 lines
619 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const Handlebars = require("handlebars");
|
|
function default_1() {
|
|
Handlebars.registerHelper('returns', function (comment) {
|
|
var _a;
|
|
const md = [];
|
|
if ((_a = comment.blockTags) === null || _a === void 0 ? void 0 : _a.length) {
|
|
const tags = comment.blockTags
|
|
.filter((tag) => tag.tag === '@returns')
|
|
.map((tag) => Handlebars.helpers.comment(tag.content));
|
|
md.push(tags.join('\n\n'));
|
|
}
|
|
return md.join('');
|
|
});
|
|
}
|
|
exports.default = default_1;
|