Skip to content

Svelte 5: {#snippet} TypeScript support #9447

@hanneswidrig

Description

@hanneswidrig

Describe the problem

I assume there are plans for TypeScript typing support but I didn't see any public issues created yet. When using lang="ts", #snippet displays ESLint errors and every parameter is typed as any, it would be wonderful if we could get support for typed parameters within the {#snippet ...} definition.

image

Describe the proposed solution

Ability to type snippet parameters to ensure type safety.

Alternatives considered

N/A

Importance

would make my life easier

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