Skip to content

Inheritance description of properties missing generic type #2978

@DerGernTod

Description

@DerGernTod

Search terms

inherit, properties, typescript helpers

Expected Behavior

The link to inherited properties of interfaces with generics should be created properly for interfaces like Partial<Foo>.

Actual Behavior

The inheritance description is created without the generic type, like Partial.propertyOfFoo instead of Partial<Foo>.propertyOfFoo, resulting in a missing link to the generic type.

Steps to reproduce the bug

  1. Create typedoc for the following code:
/**
 * Some foo interface
 */
export interface Foo {
    hello: string;
    world: number;
}

/**
 * Some bar interface
 */
export interface Bar extends Partial<Foo> {
    baz: boolean;
}
  1. Check the documentation of Bar.hello

You can see that the hierarchy view properly shows Partial<Foo> including the link to Foo, but when rendering the inherited properties, it just says Partial.hello. You can clone my reproducer for simplicity.

Environment

  • Typedoc version: 0.28.7
  • TypeScript version: 5.8.3
  • Node.js version: 22.12.0
  • OS: Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions