UNPKG

docusaurus-plugin-typedoc-api

Version:

Docusaurus plugin that provides source code API documentation powered by TypeDoc.

27 lines (23 loc) 871 B
'use strict'; const Type = require('./Type.js'); const jsxRuntime = require('react/jsx-runtime'); // https://github.com/TypeStrong/typedoc-default-themes/blob/master/src/default/partials/hierarchy.hbs function Hierarchy({ tree }) { return /*#__PURE__*/jsxRuntime.jsx("ul", { className: "tsd-hierarchy", children: tree.types.map((type, i) => /*#__PURE__*/jsxRuntime.jsxs("li", { children: [tree.isTarget ? /*#__PURE__*/jsxRuntime.jsx("em", { className: "tsd-target", children: type.type === 'reference' ? type.name : 'UNKNOWN' }) : /*#__PURE__*/jsxRuntime.jsx(Type.Type, { type: type }), i === tree.types.length - 1 && tree.next && /*#__PURE__*/jsxRuntime.jsx(Hierarchy, { tree: tree.next })] }, type.type + String(i))) }); } exports.Hierarchy = Hierarchy; //# sourceMappingURL=Hierarchy.js.map