Skip to content

v0.20 inheritedFrom property not set at declaration creation #1527

@jonchardy

Description

@jonchardy

Search terms

inheritedFrom, inherit, inheritance

Expected Behavior

Typedoc v0.20 should properly set Reflection.inheritedFrom for inherited members prior to calling any EVENT_CREATE_DECLARATION listeners. This allows plugins to check inheritance prior to resolving.

Actual Behavior

Reflection.inheritedFrom is not set for inherited members at the time of EVENT_CREATE_DECLARATION. This breaks https://github.com/jonchardy/typedoc-plugin-no-inherit.

Steps to reproduce the bug

See https://github.com/jonchardy/typedoc-inheritedfrom-breaking.

Environment

  • Typedoc version: 0.20.x
  • TypeScript version: 4.2.x
  • Node.js version: 14.15.5
  • OS: Windows 10

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