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

fix(types): allow data-* attributes for $$restProps forwarded to HTML elements #106

Merged
merged 3 commits into from
Jun 4, 2023

Conversation

metonym
Copy link
Collaborator

@metonym metonym commented Jun 4, 2023

svelte-check version 3 uses a new transform. This currently produces type errors for data-* attributes.

This PR adds a backwards-compatible fix by augmenting props forwarded to HTML elements to allow data-* attributes.

The fix was copied verbatim from this issue: sveltejs/language-tools#1825

@metonym metonym merged commit 0d6e6ab into main Jun 4, 2023
@metonym metonym deleted the fix-data-attributes branch June 4, 2023 15:24
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