Skip to content

Overriden methods are treated as inherited #1191

Closed

Description

@xshkut

First of all, thank you for the project! I believe it has a great future.

The issue is next:
When overriding a method it is visible in docs only when "Inherited" checkbox is ON.
Seems like this is wrong behaviour. It would be correct if I still have my overriden methods visible, not messing them with other inherited methods.

For example, overriding events:

[copy] export class SomeClass extends EventEmitter {} export interface SomeClass { /**@event */ on(event: 'SomeEvent', handler: () => void): this }

code

Toggling-off "Inherited"
not-inh

Toggling-on "Inherited"
inh
inh-c

typescript version = 3.7.5
typedoc version = 0.16.8 (same with 0.17.0-3)

Activity

  1. Gerrit0 commented on Jan 25, 2020

    @Gerrit0
    Collaborator

    Oh this is bad... Not only is it not inherited, we are copying the parent method so that it appears that the method is overloaded while using the "first overload" would actually cause a compiler error. Thanks for the report!

  2. Gerrit0 commented on Nov 28, 2020

    @Gerrit0
    Collaborator

    This has been fixed in 0.20 (currently typedoc@beta), the overwritten method is removed.

    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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