Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

typedoc-plugin-no-inherit

jonchardy14.5kMIT1.6.0

Typedoc plugin to exclude inherited members from a Typedoc class/interface

typedoc-plugin

readme

typedoc-plugin-no-inherit

A plugin for Typedoc to exclude inherited members from a Typedoc class using @noInheritDoc annotation.

npm

Installation

npm install typedoc-plugin-no-inherit --save-dev

Usage

Add @noInheritDoc tags in a class or interface's docstring to prevent it from inheriting documentation from its parents.

class Animal {
  /**
   * Documentation for move() method.
   */
  public move(distanceInMeters: number = 0) {
    console.log(`Animal moved ${distanceInMeters}m.`);
  }
}

/**
 * Documentation for the Dog class.
 * @noInheritDoc
 */
class Dog extends Animal {
  /**
   * Documentation for bark() method.
   */
  public bark() {
    console.log("Woof! Woof!");
  }
}

Options

Option Type Default Description
inheritNone boolean false Whether to treat all declarations as having the '@noInheritDoc' tag.