Is there a way to comment / document exported snippets? #16437
Unanswered
pmalacho-mit
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I'm a total svelte 5 convert, and have also been loving snippets and am using them a great deal. I'm wondering if there's a way to comment "top-level" exported snippets that I expect other areas of my app to consume. For example:
Component.svelte
My attempts to add comments to the export aren't picked up by the language service, nor am I able to assign the snippet to a new variable + comment & export that (I get a
Block-scoped variable 'reusable' used before its declaration.
typescript error).I think it'd be ideal to be able to comment snippets in the markup similar to how components are done, e.g.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions