You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
This is a great package, and thank you so much for putting it together. I wanted to throw out an idea for feedback and see if it's something you might consider accepting as a PR if I were to put it together.
In summary, when generating enum types, we get output that looks something like this:
This works very well if all I need is the type definition, but what if I want to use the object directly - e.g. to populate a select box or something? As-is, I have to duplicate the object elsewhere in my code.
It would seem nicer to do something like this instead:
Yea I think adding that as an optional flag works, I'd be down to review a PR for that.
Some pointers on the codebase, is pretty much all starts with the ModelTyperCommand so here you can create your additional flag. Then everything else is a independent Action, so the action for this would be WriteEnumConst. So you just need to pass the CLI argument into that action.
Hi there,
This is a great package, and thank you so much for putting it together. I wanted to throw out an idea for feedback and see if it's something you might consider accepting as a PR if I were to put it together.
In summary, when generating enum types, we get output that looks something like this:
This works very well if all I need is the type definition, but what if I want to use the object directly - e.g. to populate a select box or something? As-is, I have to duplicate the object elsewhere in my code.
It would seem nicer to do something like this instead:
And then adjust the references in the other typedefs to use the
typeof
of the object, e.g.:I currently solve this by using sed as part of my pipeline:
But this is obviously a bit inelegant and brittle.
So on to my questions:
Thank you!
The text was updated successfully, but these errors were encountered: