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 intersection versus union for interface generation #152

Merged
merged 1 commit into from
Sep 27, 2024
Merged

use intersection versus union for interface generation #152

merged 1 commit into from
Sep 27, 2024

Conversation

JamesIves
Copy link
Contributor

When a union type is used, it prevents combining properties from the different interfaces, so you can't have a custom attribute along with className on the same element despite the combination being valid. With an intersection type, you can combine partials of both without it throwing a compiler error.

@break-stuff break-stuff merged commit c0c3cfc into break-stuff:main Sep 27, 2024
1 check passed
@break-stuff
Copy link
Owner

This is included in 1.6.7

@JamesIves
Copy link
Contributor Author

@break-stuff Was this version pushed to a registry? 👀

@break-stuff
Copy link
Owner

Oh, you're right. It didn't deploy properly. You should see it now.

@JamesIves
Copy link
Contributor Author

Still seeing it on 1.5.2: https://www.npmjs.com/package/custom-element-jsx-integration

@break-stuff
Copy link
Owner

break-stuff commented Oct 10, 2024

Sorry, I was thinking about the react wrappers project. 1.5.3 is now out. Thank you for keeping me honest. 😁

@JamesIves
Copy link
Contributor Author

Works! Thank you!

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