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

[FieldinTypeAlias] Change API to accept multiple fields #35

Closed

Conversation

mateusfpleite
Copy link
Collaborator

As discussed in #34.

@mateusfpleite
Copy link
Collaborator Author

mateusfpleite commented Jul 7, 2024

@jxxcarlson I started with FieldInTypeAlias because the ClauseInCase module is a little more complex (we still need to think what should be the type of the list with the new clause, I think). Also, I only changed the API to accept a list instead of a single string, but didn't address the other suggestions, like changing "init" to "config".

@mateusfpleite mateusfpleite marked this pull request as draft July 7, 2024 19:28
@jxxcarlson
Copy link
Owner

jxxcarlson commented Jul 8, 2024

Very nice implementation of the new API! One thing we may want to consider later is the option of overwriting fields that exist in both the target type and in the list of fields to be added. Lets discuss at some point — this may not be a good idea.

@mateusfpleite mateusfpleite marked this pull request as ready for review July 8, 2024 15:51
@jxxcarlson
Copy link
Owner

pulled and merged locally. Will push momentariy.

@jxxcarlson jxxcarlson closed this Jul 8, 2024
@mateusfpleite mateusfpleite deleted the new-api-field-in-type-alias branch July 9, 2024 09:51
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