LinkedSoftwareDependencies / Components.js

🧩 A semantic dependency injection framework
https://componentsjs.readthedocs.io/
Other
41 stars 6 forks source link

Interfaces exported in a list seem to be ignored when generating component definitions #118

Open surilindur opened 1 year ago

surilindur commented 1 year ago

Issue type:


Description:

When interface definitions are exported as they are created, the corresponding component definitions are generated for them, so this works:

export interface ISomething {}

However, when the interface is defined first, and then exported in a list, the component definitions are not generated (the type keyword does not seem to make a difference):

interface ISomething {}

export { type ISomething }

If someone has any idea how to approach this issue, I would be happy to try it. For the time being, I will use the export approach that works, since it is not a big thing. If someone has managed to get this working, maybe it is a user error in a configuration somewhere.


Environment:

Crash log:

Not applicable. Results in missing component definitions only, nothing crashes (except when trying to instantiate components with missing definitions).