docusaurus-plugin-typedoc-api
Version:
Docusaurus plugin that provides source code API documentation powered by TypeDoc.
29 lines (27 loc) • 868 B
JavaScript
;
const react = require('react');
const jsxRuntime = require('react/jsx-runtime');
function TypeParametersGeneric({
params
}) {
if (!params || params.length === 0) {
return null;
}
return /*#__PURE__*/jsxRuntime.jsxs("span", {
className: "tsd-generics",
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
className: "tsd-signature-symbol",
children: "<"
}), params.map((param, i) => /*#__PURE__*/jsxRuntime.jsxs(react.Fragment, {
children: [i > 0 && /*#__PURE__*/jsxRuntime.jsx("span", {
className: "tsd-signature-symbol",
children: ", "
}), param.name]
}, param.id)), /*#__PURE__*/jsxRuntime.jsx("span", {
className: "tsd-signature-symbol",
children: ">"
})]
});
}
exports.TypeParametersGeneric = TypeParametersGeneric;
//# sourceMappingURL=TypeParametersGeneric.js.map