UNPKG

typedoc-plugin-markdown

Version:

A TypeDoc plugin that generates TypeScript API documentation as Markdown.

12 lines (11 loc) • 393 B
import { needsParenthesesInIntersection } from '../../../theme/lib/index.js'; export function intersectionType(model) { return model.types .map((intersectionType) => { const theType = this.partials.someType(intersectionType); return needsParenthesesInIntersection(intersectionType) ? `(${theType})` : theType; }) .join(' & '); }