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

Allow multiple types to set #[ts(export_to = "...")] to the same file #316

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

escritorio-gustavo
Copy link
Collaborator

@escritorio-gustavo escritorio-gustavo commented May 10, 2024

Goal

Allow for multiple types to be exported to the same file by editing the target file when it is encountered by the second time
Closes #59

Changes

Created a HashMap mapping file paths to a set of type identifiers and using it to decide whether or not the file should be created from scratch or edited

Checklist

  • I have followed the steps listed in the Contributing guide.
  • If necessary, I have added documentation related to the changes made.
  • I have added or updated the tests related to the changes made.
    • I have added a test, but I'm not sure it's quite enough

@escritorio-gustavo escritorio-gustavo changed the title Export same file Allow multiple types to set #[ts(export_to = "...")] to the same file May 10, 2024
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.

Combine exports into single file
1 participant