-
-
Notifications
You must be signed in to change notification settings - Fork 196
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? #2444
Labels
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! |
23 tasks
Comments inside the template are now allowed, but we likely need some more adjustments in language-tools to make this work, therefore moving this issue there |
Note on usage:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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: