-
-
Notifications
You must be signed in to change notification settings - Fork 223
Closed
Labels
questionA user questionA user question
Description
Describe the bug
Using VSCode with Svelte for VS Code and following the doc, I get "Expected 0 arguments, but got 1.".
<!-- provider -->
<script lang="ts">
import type { Snippet } from "svelte";
let { children }: { children: Snippet } = $props();
</script>
<button>
{@render children("some value")}
</button>
Reproduction
The following code with using VSCode.
<!-- provider -->
<script lang="ts">
import type { Snippet } from "svelte";
let { children }: { children: Snippet } = $props();
</script>
<button>
{@render children("some value")}
</button>
Expected behaviour
It should not have any warning.
System Info
- OS: macOS
- IDE: VS Code
Which package is the issue about?
Svelte for VS Code extension
Additional Information, eg. Screenshots
No response
Metadata
Metadata
Assignees
Labels
questionA user questionA user question