-
-
Notifications
You must be signed in to change notification settings - Fork 740
Open
Description
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
- 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;
}
- 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
Labels
No labels