Skip to content

blackwych/typedoc-plugin-display-inner-doc-comments-theme

Repository files navigation

@blackwych/typedoc-plugin-display-inner-doc-comments-theme

TypeDoc plugin to display doc comments specified in type arguments with the default theme

Features

In TypeDoc's default theme, a documentation of types like

type MyData = Partial<{
  /** data's name */
  name: string,
}>;

doesn't contain the doc comment for name ("data's name") used in the type arguments.
This plugin enables the default theme to display these inner doc comments traversing definitions of the type arguments.

Installation

npm install -D @blackwych/typedoc-plugin-display-inner-doc-comments-theme

Usage

TypeDoc will automatically detect and enable this plugin.

To use this theme, configure theme option as a command-line option

typedoc [any options and arguments] --theme display-inner-doc-comments

or in your typedoc.js[on]

{
  "theme": "display-inner-doc-comments"
}

About

TypeDoc plugin to display doc-comments specified in type arguments with the default theme

Resources

License

Stars

Watchers

Forks