Components.js icon indicating copy to clipboard operation
Components.js copied to clipboard

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

Open surilindur opened this issue 2 years ago • 0 comments

Issue type:

  • :bug: Bug

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:

  • Linux as OS
  • Node 19.8.1
  • TypeScript versions 5 and 4 produce the same behaviour

Crash log:

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

surilindur avatar Apr 07 '23 13:04 surilindur