Skip to content

Migration: wrong JSDoc for file using only restProps #13466

Closed
@paoloricciuti

Description

@paoloricciuti

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions