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

Use props for types with multiple args #7

Merged
merged 2 commits into from
Jun 13, 2019
Merged

Use props for types with multiple args #7

merged 2 commits into from
Jun 13, 2019

Conversation

pshrmn
Copy link
Owner

@pshrmn pshrmn commented Jun 13, 2019

For types that accept multiple arguments, use a props object. This can make things clearer (by naming the properties) and can also let us skip some props by using default values (e.g. call arguments).

For types that only accept one value, they take that value. This keeps them cleaner (at the cost of being a different API from the other types).

@pshrmn pshrmn merged commit ea75839 into master Jun 13, 2019
@pshrmn pshrmn deleted the props branch June 13, 2019 02:25
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.

1 participant