typedoc-plugin-markdown
Version:
A TypeDoc plugin that generates TypeScript API documentation as Markdown.
8 lines (7 loc) • 329 B
TypeScript
import { SomeType } from 'typedoc';
/**
* Whether a type must be wrapped in parentheses when it is the operand of a
* postfix such as `[]` or `?`, so that `(() => void)[]` is not rendered as
* `() => void[]`, which reads as a function returning an array.
*/
export declare function needsParentheses(type: SomeType): boolean;