-
-
Notifications
You must be signed in to change notification settings - Fork 57
Builder pattern for addon options #686
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
Conversation
🦋 Changeset detectedLatest commit: bb624c4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
commit: |
I'm not sure I'm in love with the name |
What about: |
Works for me |
this works so much better than the object-style definitions before i think we'll do the same in clack eventually 😅 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I.... don't understand Typescript. Why do we need to make it more complicated to make it actually work... (especially referring to the internal createOptionBuilder
).
If you ignore the internals though, this is sick. It fixes the issue without changing anything major. Apart from the open comment, I think this should be good to go.
Spent a few fun hours on this! héhé. |
Closes #179
It seems that clack team will also go in this direction one day.