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

custom-element-jet-brains-integration: Improve JS property and event generation #97

Conversation

nolan-white
Copy link
Contributor

Thanks for making the generator! I was bummed out when I discovered that there isn't an official Web Types generator for pure web components yet, so I appreciate the work you've put in to translate the official web components spec to Web Types.

I took a first pass at fixing some issues I found with the generation of JS properties and events on custom elements. From my manual testing, this seems to have fixed all of the issues I was having. I couldn't get the automated tests to run on my machine, so I'm not sure if those still pass with the new changes.

Stop using attributes to generate JS properties
Allow only public and non-static CEM class fields to be converted JS properties
Fix JS properties not using correct format for type
Add support for event type
Stop converting events without names from the CEM
Copy link
Owner

@break-stuff break-stuff left a comment

Choose a reason for hiding this comment

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

This is awesome! Thank you! I just added a few comments.

Copy link
Owner

@break-stuff break-stuff left a comment

Choose a reason for hiding this comment

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

This is great! Thank you!

@break-stuff break-stuff merged commit 4d74d90 into break-stuff:main Mar 12, 2024
1 check passed
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.

None yet

2 participants