profectus-docs/profectus-theme/resources/helpers/if-show-returns.js

14 lines
506 B
JavaScript
Raw Normal View History

2023-04-12 23:41:44 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Handlebars = require("handlebars");
const typedoc_1 = require("typedoc");
function default_1() {
Handlebars.registerHelper('ifShowReturns', function (options) {
var _a;
return this.type && !((_a = this.parent) === null || _a === void 0 ? void 0 : _a.kindOf(typedoc_1.ReflectionKind.Constructor))
? options.fn(this)
: options.inverse(this);
});
}
exports.default = default_1;