igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

[API Docs] Interface is displayed twice when both child and base classes implement it

Open tachojelev opened this issue 8 years ago • 3 comments

Description

Interface is displayed twice when both child and base classes implement it.

  • igniteui-angular version: 6.1.x, 6.2.x
  • browser: all

Steps to reproduce

  1. Switch to the tooltip feature branch (because it is currently not merged): https://github.com/IgniteUI/igniteui-angular/pull/2564
  2. Execute npm run build:docs
  3. Open index.html in the igniteui-angular\dist\igniteui-angular\docs\typescript folder.

Result

An interface is displayed twice when both child and base classes implement it.

(In this case, both the IgxToggleActionDirective and the IgxTooltipTargetDirective implement onInit)

Expected result

An interface is displayed once when both child and base classes implement it.

Attachments

image

tachojelev avatar Sep 19 '18 12:09 tachojelev

I am not sure there would be a way to avoid this, as a derived class would not need to implement its base class interface. In the case of Angular lifecycle hooks, the tslint "use-life-cycle-interface": true rule requires us to implement the interface for the derived class.

I did not find anything in Typedoc API, so I logged a question.

If there is no way to avoid this, I guess we can live with it.

hanastasov avatar Nov 01 '18 12:11 hanastasov

@zdrawku Hey if this is still labeled as a question and it is answered we should close it ?

SlavUI avatar Apr 02 '19 08:04 SlavUI

There is a logged issue in Typedoc, I have also reproduced the behavior in isolated sample and updated their issue.

Hope they answer soon, but anyway we may close ours.

hanastasov avatar Apr 02 '19 11:04 hanastasov