UNPKG

typedoc-plugin-markdown

Version:

A plugin for TypeDoc that enables TypeScript API documentation to be generated in Markdown.

13 lines (12 loc) 476 B
import { heading } from '../../../libs/markdown/index.js'; import { ReflectionKind } from 'typedoc'; export function constructor(model, options) { const md = []; model.signatures?.forEach((signature) => { md.push(heading(options.headingLevel, ReflectionKind.singularString(ReflectionKind.Constructor))); md.push(this.partials.signature(signature, { headingLevel: options.headingLevel + 1, })); }); return md.join('\n\n'); }