Closed shinokada closed 1 month ago
This is expected. Snippet
meant Snippet<[]>
which takes no argument. What you want is Snippet<[string]>
or Snippet<[name: string]>
.
https://svelte-5-preview.vercel.app/docs/snippets#typing-snippets
Thank you for a quick reply.
Describe the bug
Using VSCode with Svelte for VS Code and following the doc, I get "Expected 0 arguments, but got 1.".
Reproduction
The following code with using VSCode.
Expected behaviour
It should not have any warning.
System Info
Which package is the issue about?
Svelte for VS Code extension
Additional Information, eg. Screenshots
No response