New issue
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
Should it be possible to type snippet args using JSDoc? #11336
Comments
Alternative to consider - HTML comment: <!--
Test function that takes a single string argument.
@param {string} arg - The string argument to be processed.
-->
{#snippet test(arg)}
{/snippet} Credits goes to Hugos from Svelte Discord! |
9 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Snippets that are passed to components can be typed as parts of
$props
but how about snippets defined and used locally?Workaround: Just use TS.
Reproduction
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: