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: data from $props does not need type #2580

Merged
merged 3 commits into from
Nov 11, 2024

Conversation

YpsilonTM
Copy link
Contributor

The data type is not need because $props() is type with a data attribute. And like it was now was even wrong because props is not of type data its an attribute.

@jasonlyu123
Copy link
Member

jasonlyu123 commented Nov 11, 2024

We discussed whether the generated code should include explicit type annotation in #2034. But we think we should keep it. So we should fix the type issue here instead, and the one in layout as well. If you want to make it generate without the type annotation, you can create a separate PR with a config to control it.

@dummdidumm dummdidumm merged commit bf1b8ef into sveltejs:master Nov 11, 2024
3 checks passed
@YpsilonTM YpsilonTM deleted the fix/wrong-type-in-template branch November 13, 2024 22:46
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.

3 participants