UNPKG

typedoc-better-json

Version:

Transforms typedoc's json output to a format that is better for creating custom documentation website

10 lines (8 loc) 236 B
import { EnumDoc, TypeInfo } from "../types"; export function getEnumSignature(doc: EnumDoc): TypeInfo { return { code: `enum ${doc.name} { ${doc.members?.map((member) => member.name).join(",\n")}}`, tokens: [], }; }