Skip to content

Child class with overridden method does not have documentation from non-exported parent #2545

@nicfv

Description

@nicfv

Search terms

jsdoc, inheritance, override, export

The Problem

I have a parent class (not exported) with abstract methods, and a child class (exported) that overrides said abstract methods. In VS Code, my child class "inherits" the ts doc from the parent. Unfortunately, this is not the case in typedoc.

image

Expected Behavior

image

Actual Behavior

image

Steps to reproduce the bug

abstract class Parent {
    /**
     * Some function documentation
     */
    public notAbstract(): string {
        return 'hello';
    }
    /**
     * More function documentation
     */
    public abstract isAbstract(): string;
}

export class Child extends Parent {
    public override  notAbstract(): string {
        return 'foo';
    }
    public isAbstract(): string {
        return 'bar';
    }
}

Environment

  • Typedoc version: 0.25.13
  • TypeScript version: 5.4.5
  • Node.js version: 20.11.1
  • OS: Ubuntu 22.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions