Typedoc plugin to exclude inherited members from a Typedoc class/interface
npm install typedoc-plugin-no-inherit@noInheritDoc annotation.
npm install typedoc-plugin-no-inherit --save-dev
`
$3
Add @noInheritDoc tags in a class or interface's docstring to prevent it from inheriting documentation from its parents.
`ts
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!");
}
}
`
$3
| Option | Type | Default | Description |
| ------------- | --------- | ------- | -------------------------------------------------------------------- |
| inheritNone | boolean | false` | Whether to treat all declarations as having the '@noInheritDoc' tag. |