UNPKG

typedoc-plugin-markdown

Version:

A TypeDoc plugin that generates TypeScript API documentation as Markdown.

8 lines (7 loc) • 264 B
import { needsParentheses } from '../../../theme/lib/index.js'; export function arrayType(model) { const theType = this.partials.someType(model.elementType); return needsParentheses(model.elementType) ? `(${theType})[]` : `${theType}[]`; }