Skip to content

ReflectionKind.Inheritable should include accessors #1742

@jonchardy

Description

@jonchardy

Search terms

inheritable, accessors

Expected Behavior

Accessor reflections should be marked as inherited upon creation of the declaration.

Actual Behavior

In typedoc-plugin-no-inherit, accessors can't be filtered due to Reflection.inheritedFrom not being set at the time onDeclaration fires. This seems like it's a result of ReflectionKind.Inheritable not including accessors, and therefore accessors being skipped by ImplementsPlugin.getExtensionInfo. The inherited information is set later, as the inherited toggle on the page properly filters accessors.

Steps to reproduce the bug

See https://github.com/jonchardy/typedoc-plugin-no-inherit-test.

  1. npm i
  2. npm run doc
  3. Views docs/classes/Mammal.html, which should not include "test" accessor.

Environment

  • Typedoc version: 0.22.6
  • TypeScript version: 4.4.4

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