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

Feat: additional --use-enums flag #78

Merged
merged 3 commits into from
Jul 9, 2024
Merged

Conversation

starter-dev
Copy link
Contributor

@starter-dev starter-dev commented Jul 9, 2024

Changes:

  • Added --use-enums flag to the command-line options. This option will use typescript enums instead of object literals.
  • It also fixes an error where, when using the object literals, typescript returns an error: A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference

Related Issues:

Before:
before

After:
after

@starter-dev starter-dev closed this Jul 9, 2024
@starter-dev starter-dev reopened this Jul 9, 2024
@tcampbPPU
Copy link
Member

thanks again for your contributions! We previously moved away from TS Enums to object literals in #11 but i will still review this since im ok with that being an optional flag

@starter-dev
Copy link
Contributor Author

thanks again for your contributions! We previously moved away from TS Enums to object literals in #11 but i will still review this since im ok with that being an optional flag

Thank you so much for considering my contribution! I'm happy to make adjustments if needed based on your review. If you decide not to go through with it, that's totally okay too. Looking forward to your feedback!

@tcampbPPU tcampbPPU merged commit ececd20 into fumeapp:master Jul 9, 2024
20 checks passed
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.

2 participants