Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[BUG] Interface could extends multiple other interfaces #1364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
angelaman opened this issue Jul 15, 2023 · 0 comments
Closed

[BUG] Interface could extends multiple other interfaces #1364

angelaman opened this issue Jul 15, 2023 · 0 comments
Assignees

Comments

@angelaman
Copy link

Overview of the issue

All but first interfaces extended ignored.

interface Person extends Foo, Bar, Baz { ... }

result documentation.json

{
  ...
  "interfaces": [{
      "name": "Person",
      ...
      "extends": "Foo"
  }]
  ...
}

extends for "Person" interface is 'Foo', but rest are lost.

Related use case, when interface uses typescript type like Omit, actual extended interface lost

interface Person extends Omit<Foo, 'name'> { ... }

extends for "Person" interface is 'Omit', actual interface Foo is lost.

Operating System, Node.js, npm, compodoc version(s)
  • macos 13.14.1
  • node 18.14.0
  • compodoc 1.1.19
Angular configuration, a package.json file in the root folder
Compodoc installed globally or locally ?

locally

Motivation for or Use Case

Some times an interface needs to extends multiple other interfaces, losing all but first will result in missed properties in result documentation.

Reproduce the error

See overview section

Suggest a Fix

Suggestion for first of this bug, perhaps turn extends into array, or comma separated string

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

No branches or pull requests

2 participants