UNPKG

docusaurus-plugin-typedoc-api

Version:

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

37 lines (33 loc) 1.32 kB
'use strict'; const TypeAndParent = require('./TypeAndParent.js'); const jsxRuntime = require('react/jsx-runtime'); // https://github.com/TypeStrong/typedoc-default-themes/blob/master/src/default/partials/member.sources.hbs function hasSources(reflection) { return Boolean(reflection.implementationOf || reflection.inheritedFrom || reflection.overwrites); } function MemberSources({ reflection }) { if (!hasSources(reflection)) { return null; } return /*#__PURE__*/jsxRuntime.jsxs("aside", { className: "tsd-sources", children: [reflection.implementationOf && /*#__PURE__*/jsxRuntime.jsxs("p", { children: ["Implementation of ", /*#__PURE__*/jsxRuntime.jsx(TypeAndParent.TypeAndParent, { type: reflection.implementationOf })] }), reflection.inheritedFrom && /*#__PURE__*/jsxRuntime.jsxs("p", { children: ["Inherited from ", /*#__PURE__*/jsxRuntime.jsx(TypeAndParent.TypeAndParent, { type: reflection.inheritedFrom })] }), reflection.overwrites && /*#__PURE__*/jsxRuntime.jsxs("p", { children: ["Overrides ", /*#__PURE__*/jsxRuntime.jsx(TypeAndParent.TypeAndParent, { type: reflection.overwrites })] })] }); } exports.MemberSources = MemberSources; exports.hasSources = hasSources; //# sourceMappingURL=MemberSources.js.map