Skip to content

Svelte 5: type ComponentType requires one argument #9975

@PatrickG

Description

@PatrickG

Describe the bug

In Svelte 5, the ComponentType type requires an argument, whereas it was optional in Svelte 4.

Either it should be optional again, or the example in the docblock above should be corrected.

Reproduction

Svelte 4
Svelte 5

Logs

No response

System Info

Svelte 5

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions