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

Migration: wrong JSDoc for file using only restProps #13466

Closed
paoloricciuti opened this issue Oct 1, 2024 · 0 comments · Fixed by #13468
Closed

Migration: wrong JSDoc for file using only restProps #13466

paoloricciuti opened this issue Oct 1, 2024 · 0 comments · Fixed by #13468
Labels
Milestone

Comments

@paoloricciuti
Copy link
Member

Describe the bug

<stuff {...$$restProps}></stuff>

get's migrated to

<script>
	/** @type {{Record<string, any>}} */
	let { ...rest } = $props();
</script>

<stuff {...rest}></stuff>

which has a wrong JSDoc type

Reproduction

REPL

Logs

No response

System Info

-

Severity

annoyance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant