Skip to content
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

#343 - do type only exports in index and model barrel file for interfaces and type aliases #344

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mumenthalers
Copy link

closes #343

changes:

  • extend the Import class with a typeOnly flag
  • accept a an optional typeOnly arg for the addImport method on the GenType class (defaults to false)
  • on ModelIndex set this typeOnly flag to true when not an enum
  • modifying modelIndex template to handle the typeOnly property accordingly
  • modifying index template to handle the typeOnly property accordingly

--> when enums are generated with enumStyle: alias, it is not enum but type simple, therefore not causing problems.

@mumenthalers mumenthalers changed the title do type only exports in index and model barrel file for interfaces and type aliases #343 - do type only exports in index and model barrel file for interfaces and type aliases Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do Type-Only Exports
1 participant