Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork4.6k
Is there a way to comment / document exported snippets?#16437
Unanswered
pmalacho-mit asked this question inQ&A
-
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<scriptlang="ts"module>export {reusable };</script>{#snippetreusable()} ...{/snippet} 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 I think it'd be ideal to be able to comment snippets in the markup similar to how components are done, e.g. <!-- @snippet ...documentation... -->{#snippetreusable()} ...{/snippet} Thanks! |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 0 comments
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment