We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
children
unknown
Related to #2303
The children prop doesn't seem to have a default type of Snippet.
Snippet
A.svelte
<script> let { href, children, ...rest } = $props() </script> <a href="/test">{@render children()}</a>
children()
This expression is not callable. Type '{}' has no call signatures.
children is given a type Snippet since it's a reserved name/symbol.
System: OS: macOS 12.7.6 CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz Memory: 43.38 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 20.15.1 - ~/.nvm/versions/node/v20.15.1/bin/node npm: 10.8.2 - ~/.nvm/versions/node/v20.15.1/bin/npm pnpm: 8.15.8 - ~/Library/pnpm/pnpm bun: 1.1.17 - ~/.bun/bin/bun Browsers: Brave Browser: 127.1.68.134 Chrome: 127.0.6533.119 Safari: 17.6 npmPackages: @sveltejs/kit: ^2.0.0 => 2.5.22 svelte: ^5.0.0-next.1 => 5.0.0-next.222 VSCode: editor: 1.92.1 Svelte extension: v108.6.0
Svelte for VS Code extension, svelte-language-server, svelte-check
The text was updated successfully, but these errors were encountered:
$bindable()
No branches or pull requests
Describe the bug
Related to #2303
The
children
prop doesn't seem to have a default type ofSnippet
.Reproduction
A.svelte
containing:children()
:Expected behaviour
children
is given a typeSnippet
since it's a reserved name/symbol.System Info
Which package is the issue about?
Svelte for VS Code extension, svelte-language-server, svelte-check
Additional Information, eg. Screenshots
The text was updated successfully, but these errors were encountered: