Expose svelte2tsx component documentation
No currently available tool is able to generate complete component documentation from svelte file. There are many attempts listed here https://github.com/sveltejs/kit/issues/1979#issuecomment-1014259443. With this change it will be possible to access documentation of component and use svelte2tsx as a docgen tool.
Most fitting format will probably be similar if not identical to what sveld is using. ParsedComponent interface in sveld/src/ComponentParser.ts#L98-L106
With this change using other parsers like sveld will not be necessary to output slots, generics etc.
I get it if this use case is better left for another package.
@Tymek I think it would also be great to add examples on how to use it. Not neccessarily needed in this PR, but for the general public it still looks quiet abstract.