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

feat(dx): improve type-check of elements/web-components attributes + events #35

Merged
merged 6 commits into from
Jan 1, 2024

Conversation

aralroca
Copy link
Collaborator

@aralroca aralroca commented Jan 1, 2024

Fixes #34
Fixes #82

@danielart I was inspired by a mix between how they have it in React and how they have it in Preact. Adapted so that the attributes and events are also available in the web-components, also with their props.

There is still a lot of room to modify the DX. I have thought to add in each element, attribute and event documentation and a MDN link, so it will make it easier to work without having to leave their editor to consult documentation.

@aralroca aralroca requested a review from danielart January 1, 2024 11:41
@aralroca aralroca self-assigned this Jan 1, 2024
@aralroca aralroca changed the title feat(dx): improve type-checking allowing attributes and events of elements and web-components feat(dx): improve type-check of elements/web-components attributes + events Jan 1, 2024
@aralroca aralroca merged commit 585fdc7 into main Jan 1, 2024
1 check failed
@aralroca aralroca deleted the improve-dx-jsx-type-checking branch January 1, 2024 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant