UNPKG

@ng-doc/builder

Version:

<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>

24 lines 766 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.renderApiHeader = renderApiHeader; const ts_morph_1 = require("ts-morph"); const nunjucks_1 = require("../../nunjucks"); /** * * @param config */ function renderApiHeader(config) { const { metadata } = config; const declaration = metadata.entry.declaration; return (0, nunjucks_1.renderTemplate)('./api-header.html.nunj', { context: { declaration, docNode: ts_morph_1.Node.isVariableDeclaration(declaration) ? declaration.getVariableStatement() : declaration, scope: metadata.entry.scope, Node: ts_morph_1.Node, }, }); } //# sourceMappingURL=render-api-header.js.map