UNPKG

typedoc-plugin-markdown

Version:

Generates TypeScript API documentation as Markdown.

5 lines (4 loc) 183 B
export function arrayType(model) { const theType = this.partials.someType(model.elementType); return model.elementType.type === 'union' ? `(${theType})[]` : `${theType}[]`; }