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

Type component options #6393

Merged
merged 1 commit into from
Jul 13, 2020
Merged

Type component options #6393

merged 1 commit into from
Jul 13, 2020

Conversation

guyca
Copy link
Collaborator

@guyca guyca commented Jul 13, 2020

This commit makes static options added to components strongly typed.

I also updated a few screens in the Playground app to reflect this, and also corrected rightButtons and leftButtons option which accepts both single button and an array of buttons.

This commit makes static options added to components strongly typed.

I also updated a few screens in the Playground app to reflect this, and also corrected rightButtons and leftButtons option which accepts both single button and an array of buttons.
Copy link
Collaborator

@ItsNoHax ItsNoHax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

Not a fan of leftButtons/rightButtons accepting either an Array or Single item since the name is plural you would expect it to always accept an array.

@guyca
Copy link
Collaborator Author

guyca commented Jul 13, 2020

@ItsNoHax agreed. They accept both single button and array due to legacy reasons. Some modules in the Wix app use the old syntax 🤷

@guyca guyca merged commit b23ab25 into master Jul 13, 2020
@guyca guyca deleted the tsDocs branch July 13, 2020 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants