UNPKG

typedoc-plugin-markdown

Version:

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

11 lines (10 loc) 315 B
import { ReflectionKind } from 'typedoc'; export function getKeyword(model) { const KEYWORD_MAP = { [ReflectionKind.Class]: 'class', [ReflectionKind.Enum]: 'enum', [ReflectionKind.Function]: 'function', [ReflectionKind.TypeAlias]: 'type', }; return KEYWORD_MAP[model]; }