UNPKG

docusaurus-plugin-typedoc-api

Version:

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

29 lines (25 loc) 746 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/typeAndParent.hbs function TypeAndParent({ type }) { if (!type) { return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, { children: "void" }); } if ('elementType' in type && type.elementType) { return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [/*#__PURE__*/jsxRuntime.jsx(TypeAndParent, { type: type.elementType }), "[]"] }); } return /*#__PURE__*/jsxRuntime.jsx(Type.Type, { type: type }); } exports.TypeAndParent = TypeAndParent; //# sourceMappingURL=TypeAndParent.js.map