profectus-docs/profectus-theme/resources/helpers/if-is-reference.js

13 lines
416 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('ifIsReference', function (options) {
return this instanceof typedoc_1.ReferenceReflection
? options.fn(this)
: options.inverse(this);
});
}
exports.default = default_1;