typedoc-better-json
Utility for generating documentation website for TypeScript library
If you want to generate a referece for your TypeScript library, TypeDoc provides a detailed JSON output, but that output is extremely complex and hard to use for creating custom documentation websites. This library transforms it into a simpler JSON format that is easy to use for creating custom documentation websites
Simplified Types
TypeDoc outputs complex nested structures for TypeScript types. This library converts them into human-readable strings.
For example, TypeDoc output looks like this:
typedoc-better-json output looks like this:
Markdown Parsing
JSDoc comments are fully parsed into structured markdown AST, including code blocks, lists, headings, and inline formatting.
For Example, this JSDoc comment:
Transforms into this JSON:
Organized Output
The output organizes your documentation by category - functions, hooks, components, types, variables, enums, and classes.